Something*
On Wed, Dec 16, 2009 at 1:09 PM, Slik Jay <slik....@gmail.com> wrote: > http://mooshell.net/sHakv/ > Thomesing like this ? > > On Wed, Dec 16, 2009 at 12:52 PM, Roman Land <roman.l...@gmail.com> wrote: >> Hi, >> >> Is there any way to extend / implement a class while initializing it? >> example: >> >> ExtendMe = new Class ({ >> 'doIt': function() {'console.log('i did it')} >> }) >> >> IExtend = new Class({ >> 'initialize: function(){ >> $extend(this, extendMe); >> } >> }) >> >> iExtend = new IExtend(); >> iExtend.doIt(); // but this doesnt work... >> >> >> >> -- >> --- >> "Make everything as simple as possible, but not simpler." >> >> - Albert Einstein >> >> >