Permalink
Browse files

Make Pencil pseudo-promise also implement the promise() method

  • Loading branch information...
1 parent da7a661 commit deecaa42b67f923c7cfc22bafe1d82d1661b8c86 @midnightmonster committed Apr 27, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 jquery.pencil.js
View
@@ -33,6 +33,7 @@
Pencil.prototype.fail = function(){ return this._dfr.fail.apply(this._dfr,arguments); };
Pencil.prototype.isResolved = function(){ return this._dfr.isResolved.apply(this._dfr,arguments); };
Pencil.prototype.isRejected = function(){ return this._dfr.isRejected.apply(this._dfr,arguments); };
+ Pencil.prototype.promise = function(){ return this._dfr.promise(); };
$.Pencil = Pencil;
})(jQuery);

0 comments on commit deecaa4

Please sign in to comment.