Base of project created

This commit is contained in:
Sebastian Seedorf
2016-01-26 18:24:31 +01:00
parent 89a8e5403e
commit 01f4a0cd49
933 changed files with 171161 additions and 0 deletions

14
node_modules/promise/lib/done.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
'use strict';
var Promise = require('./core.js')
var asap = require('asap')
module.exports = Promise
Promise.prototype.done = function (onFulfilled, onRejected) {
var self = arguments.length ? this.then.apply(this, arguments) : this
self.then(null, function (err) {
asap(function () {
throw err
})
})
}