On Oct 8, 2:31 pm, nutron <[EMAIL PROTECTED]> wrote:
> This isn't the problem, but it'll bite you in IE anyway:
> elements: {},  << trailing coma
Thanks very much, it worked in Firefox which was my first goal.  That
is now fixed.

On Oct 8, 2:31 pm, nutron <[EMAIL PROTECTED]> wrote:
> anyway, as to your problem, my guess is the problem is in your "attachTo"
> method. Are you binding the function to your class instance?
Oh yes, the menu shows and does its animation.  But the event isn't
fired nor is are the links rewritten.  (That's what I'm doing, using
regex to grab the UID of the user and transform the menu's links.)

AttachTo looks like:
----------------------
  attachTo: function(element) {
    if($type(element) == 'array')
      element.each(function(item) {
        $(item).addEvent(this.options.showEvent,
this.showMenu.bindWithEvent(this, item))
          .addEvent('mouseout', this._setTimer.bind(this, 1500));
      }.bind(this));
    else
      $(element).addEvent(this.options.showEvent,
this.showMenu.bindWithEvent(this, element))
        .addEvent('mouseout', this._setTimer.bind(this, 1500));
   },

Let me throw together a quick example page with the script and
styling.  That'll help you see what's going on.

Regards,
Flea

Reply via email to