Rename Dictionary#remove to Dictionary#delete
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 22 May 2015 21:47:08 +0000 (23:47 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 22 May 2015 21:48:04 +0000 (23:48 +0200)
wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js
wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js
wcfsetup/install/files/js/WoltLab/WCF/Event/Handler.js
wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js
wcfsetup/install/files/js/WoltLab/WCF/UI/Dropdown/Simple.js

index f932b225cb954f14c23368831d59eac014c8b9d3..35921724ac73c424b1779f64e1854a97e312e624 100644 (file)
@@ -40,7 +40,7 @@ define(['Dictionary'], function(Dictionary) {
                 * @param       {string}        identifier      arbitrary string to group and identify callbacks
                 */
                remove: function(identifier) {
-                       this._dictionary.remove(identifier);
+                       this._dictionary.delete(identifier);
                },
                
                /**
index 277adbb8cf0fd733c26058412a6b65d208686639..91ce2dc4e10965028eff0445f3138a1f7df99644 100644 (file)
@@ -40,10 +40,10 @@ define([], function() {
                 * 
                 * @param       {string}        key     key
                 */
-               remove: function(key) {
+               delete: function(key) {
                        if (typeof key === 'number') key = key.toString();
                        
-                       if (_hasMap) this._dictionary.remove(key);
+                       if (_hasMap) this._dictionary.delete(key);
                        else this._dictionary[key] = undefined;
                },
                
index fe60ab8755e61502108f8bb70d71d37dd72dc520..ae6cd2c6c621fa5da0a443f5388344ecbf05a8b5 100644 (file)
@@ -86,7 +86,7 @@ define(['Core', 'Dictionary'], function(Core, Dictionary) {
                                return;
                        }
                        
-                       callbacks.remove(uuid);
+                       callbacks.delete(uuid);
                },
                
                /**
@@ -105,10 +105,10 @@ define(['Core', 'Dictionary'], function(Core, Dictionary) {
                        }
                        
                        if (typeof action === 'undefined') {
-                               _listeners.remove(identifier);
+                               _listeners.delete(identifier);
                        }
                        else {
-                               actions.remove(action);
+                               actions.delete(action);
                        }
                }
        };
index 74ec468d3bde2649d2569905c6aafc5c855270eb..3d9258cacbdb282c225d1fb3076a5ab2ea6aa62d 100644 (file)
@@ -364,7 +364,7 @@ define(['enquire', 'Core', 'Dictionary', 'Environment', 'Language', 'DOM/Util'],
                                setTimeout(function() {
                                        if (data.dialog.getAttribute('aria-hidden') === 'true') {
                                                _container.removeChild(data.dialog);
-                                               _dialogs.remove(id);
+                                               _dialogs.delete(id);
                                        }
                                }, 5000);
                        }
index 258cf3b8c384c854d2ee252e13ea74ec5ea9ec9a..790f623a8b9a9912d758f7bea01a4405355ecf3a 100644 (file)
@@ -234,8 +234,8 @@ define(
                        var menu = _menus.get(containerId);
                        _menus.parentNode.removeChild(menu);
                        
-                       _menus.remove(containerId);
-                       _dropdowns.remove(containerId);
+                       _menus.delete(containerId);
+                       _dropdowns.delete(containerId);
                        
                        return true;
                },