dotnode
Version:
.NET-like MVC framework for Node.js
30 lines (22 loc) • 787 B
JavaScript
var IDeferred = function (overloads) {
overloads = overloads || {};
if (typeof overloads.done == 'function') {
this.done = overloads.done.bind(this);
}
if (typeof overloads.error == 'function') {
this.error = overloads.error.bind(this);
}
if (typeof overloads.invoke == 'function') {
this.invoke = overloads.invoke.bind(this);
}
};
IDeferred.prototype.invoke = function () {
throw new Error('Method [IDeferred].invoke is not implemented');
};
IDeferred.prototype.done = function () {
throw new Error('Method [IDeferred].done is not implemented');
};
IDeferred.prototype.error = function () {
throw new Error('Method [IDeferred].error is not implemented');
};
module.exports = IDeferred;