[Proto-Scripty] Re: wrong context in function#bind

2009-03-10 Thread T.J. Crowder
Hi, Your options object is common to all instances of Foo, because you declared it that way: [snip] Foo = Class.create({ options: $H({'onSelect' : false}), initialize: function(element, options) { [snip] 'options', just like 'initialize', is

[Proto-Scripty] Re: wrong context in function#bind

2009-03-10 Thread mathieu . weber
Thanx a lot, now it seems clear to me. I must confess that javascript and prototype are sometimes magical for me and it's not obvious to understand the underlying process of Class.Create ... Well thanx again. On Tue, Mar 10, 2009 at 2:33 PM, T.J. Crowder t...@crowdersoftware.comwrote: Hi,