The usage of Element.up( parameter ) is extreme slugish in combination
with IE and a big page (tested page is 300k).
If you would do a $('element').up(1) its more than 100 times slower
than doing $('element').up().up(). (this is the workaround for those
who dont want to edit their prototype.js)

That most likely results from the element.ancestors() call inside up.

  up: function(element, expression, index) {
    element = $(element);
    if (arguments.length == 1) return $(element.parentNode);
    var ancestors = element.ancestors();
    return expression ? Selector.findElement(ancestors, expression,
index) :
      ancestors[index || 0];
  },

an fix might be this:

  up: function(element, expression, index) {
    element = $(element);
    if (arguments.length == 1 || ( !expression && index == 0 ) )
return $(element.parentNode);
    return expression ? Selector.findElement(element.ancestors(),
expression, index) :
      element.up( index-1 );
  },

i try that later, but atm i only have protactulous on my server, maybe
someone here has a better solution?


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

Reply via email to