I can't think of anything different in 1.6 (in this context) except
that event callbacks are now bounded to their elements. Even so, this
hardly seems to be a problem, since I'm sure you are binding your
callbacks the proper way.
$('foo').observe('click', function() {
this.addClassName('active'); // <= "this" was not guaranteed to
refer to $('foo') in <1.6
})
$('foo').observe('click', this.resetImage.bind(this)); // <= should be
fine when used in instance method
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---