I tried putting this as the first argument to bind, but the function doesn't get called. Am I using the right syntax for calling the function
-Andy -------------------------------------------------- From: "Kevin Porter" <[email protected]> Sent: Wednesday, August 19, 2009 5:14 PM To: <[email protected]> Subject: [Proto-Scripty] Re: this keyword inside of the map function > > >> I am not positive, but I believe the problem is from my event >> listeners on the line: >> >> Now: $(e).observe('click', *this*.doSlide.bind(featuresWrapper[i].id)); >> > You need to pass 'this' as the first argument to bind(). > > regards, > > - Kev > > -- > Kevin Porter > Advanced Web Construction Ltd > http://webutils.co.uk > http://billiardsearch.net > http://9ballpool.co.uk > > AJAX Blackjack - real-time multi-player blackjack game with no flash, java > or software downloads required - http://blackjack.webutils.co.uk > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
