sjivan
13 Mar 2007, 5:28 AM
radioClass() calls removeClass() and I'm stepping through the debugger and for a class named 'active-msg', the regular expression is returning false.
var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)', "g");
var c = this.dom.className;
if(re.test(c)){
this.dom.className = c.replace(re, " ");
}
radioClass() used to work previously with yui-ext 0.33 and I noticed that it previously used to call YAHOO.util.Dom.removeClass(s, className); but now Ext has it has its own implementation which doesn't seem to be working. I'm noticing the same behavior on IE and FF. Am I going something wrong?
Thanks,
Sanjiv
[/code]
var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)', "g");
var c = this.dom.className;
if(re.test(c)){
this.dom.className = c.replace(re, " ");
}
radioClass() used to work previously with yui-ext 0.33 and I noticed that it previously used to call YAHOO.util.Dom.removeClass(s, className); but now Ext has it has its own implementation which doesn't seem to be working. I'm noticing the same behavior on IE and FF. Am I going something wrong?
Thanks,
Sanjiv
[/code]