Skip to content

Commit

Permalink
Merge pull request #1 from wasphub/wasphub-patch-dictionary-valueOf-hash
Browse files Browse the repository at this point in the history
Fixing check on valueOf type to get correct hash
  • Loading branch information
wasphub committed Jan 20, 2015
2 parents 6924b84 + 4585c2f commit 274568d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/internal/dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
// Hack check for valueOf
var valueOf = obj.valueOf();
if (typeof valueOf === 'number') { return numberHashFn(valueOf); }
if (typeof obj === 'string') { return stringHashFn(valueOf); }
if (typeof valueOf === 'string') { return stringHashFn(valueOf); }
}
if (obj.hashCode) { return obj.hashCode(); }

Expand Down

0 comments on commit 274568d

Please sign in to comment.