initi.doc/docfiles/libraries/tools/promise.js

47 lines
695 B
JavaScript

/**
*
* @class promise
* @memberof tools
*/
function promise() {
}
promise.prototype = {
/**
* @public
* @name native
* @memberof tools.promise
* @type {Promise}
*/
native: function(){
/**
*
* @function cancel
* @memberof Promise
*/
this.cancel = function () {
}
},
/**
*
* @public
* @function resolve
* @memberof tools.promise
* @param {Object} _object
*/
resolve: function (_object) {},
/**
*
* @public
* @function reject
* @memberof tools.promise
* @param {Object} _object
*/
reject: function (_object) {}
};