mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-19 04:51:13 +02:00
deferred.js: add comments
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
d.reject = reject;
|
||||
});
|
||||
|
||||
// Add the native promise as a key on deferred object.
|
||||
d.promise = promise;
|
||||
// Also move all props/methods of native promise on the deferred obj.
|
||||
return Object.assign(d, promise);
|
||||
};
|
||||
})();
|
||||
|
Reference in New Issue
Block a user