Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
fix(underscore): fix the binding to underscore
Browse files Browse the repository at this point in the history
Call the right `hasOwnProperty` function
  • Loading branch information
Clément PREVOT committed Dec 14, 2016
1 parent 9dd4137 commit 8bf8e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion underscore.getSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
// or create our own underscore object.
root._ = root._ || {};
for (var functionName in gs) {
if (gs.hasOwnProperties(functionName) && typeof gs[functionName] === 'function') {
if (gs.hasOwnProperty(functionName) && typeof gs[functionName] === 'function') {
root._[functionName] = gs[functionName];
}
}
Expand Down

0 comments on commit 8bf8e5f

Please sign in to comment.