From: Alexander Ebert Date: Fri, 22 May 2015 23:57:20 +0000 (+0200) Subject: Better check for window.Map X-Git-Tag: 3.0.0_Beta_1~2339 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c89533c48ef21cd88b5ec96365fa30bf1bae8dd5;p=GitHub%2FWoltLab%2FWCF.git Better check for window.Map --- 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