UNPKG

osmosis

Version:
21 lines (17 loc) 383 B
/** * Call a callback when the Osmosis instance has completely finished. * * @function done * @memberof Command * @param {function} function - Callback function * @instance */ function Done(cb) { if (typeof cb === 'function') { this.done = cb; } else if (this.next !== undefined) { this.next.done(); } return this; } module.exports = Done;