- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
14 lines
314 B
JavaScript
14 lines
314 B
JavaScript
'use strict';
|
|
|
|
var Promise = require('./core.js');
|
|
|
|
module.exports = Promise;
|
|
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);
|
|
});
|
|
};
|