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
  }

-- 
Michael Peters
Developer
Plus Three, LP


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to