Skip to content

Commit

Permalink
closure-compiler comment, plus semicolons.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed May 11, 2011
1 parent 379d177 commit bf6098f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions underscore.js
Expand Up @@ -55,6 +55,7 @@
module.exports = _;
_._ = _;
} else {
// Exported as a string, for Closure Compiler "advanced" mode.
root['_'] = _;
}

Expand Down Expand Up @@ -256,10 +257,10 @@
var result = {};
each(obj, function(value, index) {
var key = iterator(value, index);
(result[key] || (result[key] = [])).push(value)
(result[key] || (result[key] = [])).push(value);
});
return result;
}
};

// Use a comparator function to figure out at what index an object should
// be inserted so as to maintain order. Uses binary search.
Expand Down

0 comments on commit bf6098f

Please sign in to comment.