View Full Version : Element.radioClass broken?

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;
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?



13 Mar 2007, 7:21 AM
Did you look at the className for the element that was returning false?

removeClass is used in quite a few spots in Ext without issues. I will need more details to help find the problem.

13 Mar 2007, 3:29 PM
Some screwup at my end. Sorry for the false alarm.