Re: [Moo] Re: Firefox 4b8 error in Element.addClass method

2010-12-22 Thread Barry van Oudtshoorn
You're right, which means that it may well be a problem with Firebug. I'll file a bug with Firebug. On 23/12/10 09:19, Lim Chee Aun wrote: Somehow the error only occurs when I open Firebug on Firefox (on my side). Firebug disabled, it works. http://jsfiddle.net/y7B5w/ -- Barry van Oudtshoo

Re: [Moo] Re: Firefox 4b8 error in Element.addClass method

2010-12-22 Thread Lim Chee Aun
Somehow the error only occurs when I open Firebug on Firefox (on my side). Firebug disabled, it works. http://jsfiddle.net/y7B5w/

Re: [Moo] Re: Firefox 4b8 error in Element.addClass method

2010-12-22 Thread Barry van Oudtshoorn
Yeah, I'd say you're right. For anyone else experiencing this problem, you can work around it by replacing the string concatenation with an array join, thusly: if (!this.hasClass(className)) this.className = [this.className, ' ', className].join('').clean(); Oh, and it looks as though it's a

Re: [Moo] Re: Firefox 4b8 error in Element.addClass method

2010-12-22 Thread Sean McArthur
That looks like 100% a Firefox bug. There is nothing in that line that shouldn't be working. On Wed, Dec 22, 2010 at 4:28 PM, Barry van Oudtshoorn < bvanoudtsho...@gmail.com> wrote: > Hi again, > > A minimal test case: > > > var el = new Element('div'); > > console.log((el.className + ' ' + 'te

[Moo] Re: Firefox 4b8 error in Element.addClass method

2010-12-22 Thread Barry van Oudtshoorn
Hi again, A minimal test case: var el = new Element('div'); console.log((el.className + ' ' + 'test').clean()); // Succeeds var fn = function(className) { console.log((el.className + ' ' + className).clean()); // Fails } fn('test'); -- Barry van Oudtshoorn www.barryvan.com.au Not sent from

[Moo] Firefox 4b8 error in Element.addClass method

2010-12-22 Thread Barry van Oudtshoorn
Hi all, The latest Fx4 beta is out, and it seems to have broken MooTools somewhat, although I can't quite work out why. In the method Element.addClass, the error "(this.className + ' ' + className).clean is not a function" is thrown. Now, the really strange thing is that when I do some loggi

Re: [Moo] element.get("text") fails

2010-12-22 Thread Andrea Dessì
very clear now! Thank You so much! -- Andrea On Wed, Dec 22, 2010 at 00:35, Sean McArthur wrote: > Yea, for now, just access textContent, since that's the XML DOM standard > accessor for what you want. > > > > On Tue, Dec 21, 2010 at 3:24 PM, Sanford Whiteman < > sa...@cypressintegrated.com> w