Skip to content

Commit

Permalink
expose abort() method on Model calls (if exists)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Sloan committed Sep 1, 2012
1 parent 97a3f18 commit 8193e35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ steal('can/util','can/observe', function( can ) {
},function(){
d.rejectWith(this, arguments);
});
if(typeof def.abort === 'function') {
d.abort = function() {
return def.abort();
};
}
return d;
},
modelNum = 0,
Expand Down

0 comments on commit 8193e35

Please sign in to comment.