示例#1
0
	end: function (handler) {
		if (this._failed) {
			nextTick(
				isFunction(handler) ? curry(handler, this._value) :
					throwError.bind(this._value));
		}
	},
示例#2
0
	end: function (handler) {
		if (this.failed) {
			nextTick(
				isFunction(handler) ? curry(handler, this.value) :
					throwError.bind(this.value));
		}
		return this.then;
	},