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 Linux-only bug. >:/
On 23/12/10 08:33, Sean McArthur wrote:
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
<[email protected] <mailto:[email protected]>> wrote:
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 <http://www.barryvan.com.au>
Not sent from my Apple πPhone.
--
Barry van Oudtshoorn
www.barryvan.com.au
Not sent from my Apple πPhone.