1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-05 17:16:38 +02:00

deferred.js: add comments

This commit is contained in:
Kushagra Gour 2017-07-15 17:42:10 +05:30
parent b7fb978731
commit abccf89b97

View File

@ -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);
};
})();