|
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
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var Promise = require('./core.js');
|
|---|
| 4 |
|
|---|
| 5 | module.exports = Promise;
|
|---|
| 6 | Promise.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.