Michael, thanks for responding!
I'm afraid that I need it to be a property of that object.
What it boils down to is:
I have an effect that uses two of the core effects. I have begun the
implementation of allowing callbacks to the main core effects through
the HTML page as options.
Through these options (afterFinish, beforeStart), I would also allow use
of the "e.index".
So, I need to set this through my javascript function and update it as
needed.
>
>Ian Tyndall wrote:
>
>
>>Since I haven't received any responses yet, I thought I would go into
>>more detail.
>>
>>Code that need this usage:
>>
>> afterFinish: function(e) {
>> var pos = e.index + ':' + e.element;
>> $('debug').innerHTML = pos;
>> }
>>
>>
>
>Does 'index' need to be a property of 'e'? Can't you just use a closure?
>
> var index = 5;
> ...
> afterFinish: function(e) {
> var pos = index + ':' + e.element;
> $('debug').innerHTML = pos
> }
>
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---