mw.Map: Check presence of value argument in set()
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.js
index ff7012f..e0e2963 100644 (file)
                                }
                                return true;
                        }
-                       if ( typeof selection === 'string' && arguments.length ) {
+                       if ( typeof selection === 'string' && arguments.length > 1 ) {
                                this.values[selection] = value;
                                return true;
                        }