From a36b814bc0f488e18030da88de7c4dd89286d880 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 15 Oct 2013 17:55:15 -0700 Subject: [PATCH] Remove Firefox navigator check As of approximately Firefox 24, Nodes and Events can be used as WeakMap keys. --- weakmap.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/weakmap.js b/weakmap.js index 416264c..b9040a0 100644 --- a/weakmap.js +++ b/weakmap.js @@ -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;