[Proto-Scripty] Re: Can't call a function within a class using each or invoke

2008-11-17 Thread Mona Remlawi
great readings suggested. when you finish, you can try the following :) $$('.editable').each(function(e) {e.observe('click', (function() {this._editField(e)}).bind(this))}, this); the problem is that when you iterate, you have to specify the context. On Mon, Nov 17, 2008 at 2:15 PM, T.J.

[Proto-Scripty] Re: Can't call a function within a class using each or invoke

2008-11-17 Thread George
T.J. - Mona, Thank you both very much for your solutions, recommended reading lists and T.J, for your event delegation suggestion. FYI Mona's solution worked out of the box but T.J. your event delegation suggestion makes a lot of sense - I suspect I will add a new method to my class to handle

[Proto-Scripty] Re: Can't call a function within a class using each or invoke

2008-11-17 Thread Mona Remlawi
Good call George, I'll do the same :) cheers -- mona [EMAIL PROTECTED] On Mon, Nov 17, 2008 at 4:13 PM, George [EMAIL PROTECTED] wrote: T.J. - Mona, Thank you both very much for your solutions, recommended reading lists and T.J, for your event delegation suggestion. FYI Mona's solution