* @param {string} identifier arbitrary string to group and identify callbacks
*/
remove: function(identifier) {
- this._dictionary.remove(identifier);
+ this._dictionary.delete(identifier);
},
/**
*
* @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;
},
return;
}
- callbacks.remove(uuid);
+ callbacks.delete(uuid);
},
/**
}
if (typeof action === 'undefined') {
- _listeners.remove(identifier);
+ _listeners.delete(identifier);
}
else {
- actions.remove(action);
+ actions.delete(action);
}
}
};
setTimeout(function() {
if (data.dialog.getAttribute('aria-hidden') === 'true') {
_container.removeChild(data.dialog);
- _dialogs.remove(id);
+ _dialogs.delete(id);
}
}, 5000);
}
var menu = _menus.get(containerId);
_menus.parentNode.removeChild(menu);
- _menus.remove(containerId);
- _dropdowns.remove(containerId);
+ _menus.delete(containerId);
+ _dropdowns.delete(containerId);
return true;
},