Sha256: abcd3ab6e5c8c8d639095b8dfb3483ba5e060f3f349d525544d616ed6a2f473c

Contents?: true

Size: 350 Bytes

Versions: 12

Compression:

Stored size: 350 Bytes

Contents

// should work in any browser without browserify

if (typeof Promise.prototype.done !== 'function') {
  Promise.prototype.done = function (onFulfilled, onRejected) {
    var self = arguments.length ? this.then.apply(this, arguments) : this
    self.then(null, function (err) {
      setTimeout(function () {
        throw err
      }, 0)
    })
  }
}

Version data entries

12 entries across 10 versions & 5 rubygems

Version Path
ilog-0.4.1 node_modules/promise/polyfill-done.js
ilog-0.4.0 node_modules/promise/polyfill-done.js
ilog-0.3.3 node_modules/promise/polyfill-done.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/promise/polyfill-done.js
locomotivecms-3.4.0 app/javascript/node_modules/promise/polyfill-done.js
cortex-0.1.3 spec/dummy/node_modules/promise/polyfill-done.js
lanes-0.8.0 node_modules/promise/polyfill-done.js
es6_tilt-0.1.2 test/dummy/node_modules/promise/polyfill-done.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/promise/polyfill-done.js
es6_tilt-0.1.1 test/dummy/node_modules/promise/polyfill-done.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/promise/polyfill-done.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/promise/polyfill-done.js