Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Remove Firefox navigator check
Browse files Browse the repository at this point in the history
As of approximately Firefox 24, Nodes and Events can be used as WeakMap keys.
  • Loading branch information
dfreedm committed Oct 16, 2013
1 parent b9e47fc commit a36b814
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions weakmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
* license that can be found in the LICENSE file.
*/

// If WeakMap is not available, the association is stored as an expando property on the "key".
// TODO(arv): WeakMap does not allow for Node etc to be keys in Firefox
if (typeof WeakMap === 'undefined' || navigator.userAgent.indexOf('Firefox/') > -1) {
if (typeof WeakMap === 'undefined') {
(function() {
var defineProperty = Object.defineProperty;
var counter = Date.now() % 1e9;
Expand Down

0 comments on commit a36b814

Please sign in to comment.