source: frontend/node_modules/promise/domains/done.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 314 bytes
Line 
1'use strict';
2
3var Promise = require('./core.js');
4
5module.exports = Promise;
6Promise.prototype.done = function (onFulfilled, onRejected) {
7 var self = arguments.length ? this.then.apply(this, arguments) : this;
8 self.then(null, function (err) {
9 setTimeout(function () {
10 throw err;
11 }, 0);
12 });
13};
Note: See TracBrowser for help on using the repository browser.