Skip to content

Commit

Permalink
Fail Deferred with one failure the same way as jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Feb 24, 2013
1 parent 2038e96 commit 070d170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/deferred.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ steal('can/util/can.js',function(can){
df.resolve.apply(df, rp);
}
}).fail(function() {
df.reject(arguments);
df.reject((arguments.length === 1) ? arguments[0] : arguments);
});
});

Expand Down

0 comments on commit 070d170

Please sign in to comment.