Skip to content

Commit

Permalink
Revert "Fixes jashkenas#1148 -- optimize chaining internally"
Browse files Browse the repository at this point in the history
This reverts commit 19a9a73.
  • Loading branch information
jashkenas committed Jul 6, 2013
1 parent 6677ebc commit e00d4db
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1211,12 +1211,7 @@

// Helper function to continue chaining intermediate results.
var result = function(obj) {
if (this._chain) {
this._wrapped = obj;
return this;
} else {
return obj;
}
return this._chain ? _(obj).chain() : obj;
};

// Add all of the Underscore functions to the wrapper object.
Expand Down

0 comments on commit e00d4db

Please sign in to comment.