From: Tim Düsterhus Date: Fri, 22 May 2015 21:47:08 +0000 (+0200) Subject: Rename Dictionary#remove to Dictionary#delete X-Git-Tag: 3.0.0_Beta_1~2344 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d5af46cd7d69d61f16e017db989c0ba38e37e41f;p=GitHub%2FWoltLab%2FWCF.git Rename Dictionary#remove to Dictionary#delete --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js b/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js index f932b225cb..35921724ac 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js @@ -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); }, /** diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js b/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js index 277adbb8cf..91ce2dc4e1 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js @@ -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; }, diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Event/Handler.js b/wcfsetup/install/files/js/WoltLab/WCF/Event/Handler.js index fe60ab8755..ae6cd2c6c6 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Event/Handler.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Event/Handler.js @@ -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); } } }; diff --git a/wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js b/wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js index 74ec468d3b..3d9258cacb 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js @@ -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); } diff --git a/wcfsetup/install/files/js/WoltLab/WCF/UI/Dropdown/Simple.js b/wcfsetup/install/files/js/WoltLab/WCF/UI/Dropdown/Simple.js index 258cf3b8c3..790f623a8b 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/UI/Dropdown/Simple.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/UI/Dropdown/Simple.js @@ -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; },