(function($) { $.dictionary = []; $.dictionary.setValue = function(key, value) { this[key] = value; };
$.dictionary.getValue = function(key) { return this[key]; }; $.dictionary.delValue = function(key) { this[key].delete; }; })(jQuery); in this example with jquery, delete doesn't work on the item, why?, another question, the plugin constructor is an Array why its methods are not directly "accessible"?