> I recently had the wish for extended functions on arrays, hashs and > objects > like Prototype provides with extending the Array() object. I often used > features like without() and truncate(). I am really thinking of > rewriting/porting a lot of stuff for jQuery and call it "jQuery Methods", > but I have still thoughts going on about the right implementation.
Just commited string.js and array.js to the plugin repository. They are extending Array and String prototypes with functions, when they do not exist yet. Documentation and testsuite is in there, too. Source: http://jquery.com/dev/svn/trunk/plugins/methods/array.js?format=txt http://jquery.com/dev/svn/trunk/plugins/methods/string.js?format=txt What do you think? -- Jörn Zaefferer http://bassistance.de -- "Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
