I want to remove an element from the DOM after fading it. new Effect.Fade( 'lightbox', { duration: this.animationTime, afterFinish: $('lightbox').remove() } );
The above code works but gives me an error. Why is it still trying to calculate opacity after it's finished? element is null anonymous(Object name=element)effects.js (line 536) anonymous()Lightbox.js (line 48) function onclick(event) { lightbox.close(); }(click clientX=175, clientY=190)2 (line 2) [Break on this error] var oldOpacity = element.getInlineOpacity(); -- 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 prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.