From c89533c48ef21cd88b5ec96365fa30bf1bae8dd5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 23 May 2015 01:57:20 +0200 Subject: [PATCH] Better check for window.Map --- wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js b/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js index b955e03095..9a1c8369ac 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js @@ -1,5 +1,5 @@ /** - * Dictionary implemention relying on an object or if supported on a Map to hold key => value data. + * Dictionary implementation relying on an object or if supported on a Map to hold key => value data. * * If you're looking for a dictionary with object keys, please see `WoltLab/WCF/ObjectMap`. * @@ -11,7 +11,7 @@ define([], function() { "use strict"; - var _hasMap = window.hasOwnProperty('Map'); + var _hasMap = window.hasOwnProperty('Map') & typeof window.WeakMap === 'function'; /** * @constructor -- 2.20.1