Fixed check for Map existence in WoltLab/WCF/Dictionary
authorAlexander Ebert <ebert@woltlab.com>
Sat, 23 May 2015 10:09:05 +0000 (12:09 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 23 May 2015 10:09:05 +0000 (12:09 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js

index 9a1c8369ac9685ac426416fcd79361eeb2781247..806c70917218c78c62c2cd7944d8b7d44077e14b 100644 (file)
@@ -11,7 +11,7 @@
 define([], function() {
        "use strict";
        
-       var _hasMap = window.hasOwnProperty('Map') & typeof window.WeakMap === 'function';
+       var _hasMap = window.hasOwnProperty('Map') && typeof window.Map === 'function';
        
        /**
         * @constructor