|
|
@ -99,15 +99,16 @@ Group.prototype.setData = function(data) { |
|
|
|
var className = data && data.className || null; |
|
|
|
if (className != this.className) { |
|
|
|
if (this.className) { |
|
|
|
util.removeClassName(this.dom.label, className); |
|
|
|
util.removeClassName(this.dom.foreground, className); |
|
|
|
util.removeClassName(this.dom.background, className); |
|
|
|
util.removeClassName(this.dom.axis, className); |
|
|
|
util.removeClassName(this.dom.label, this.className); |
|
|
|
util.removeClassName(this.dom.foreground, this.className); |
|
|
|
util.removeClassName(this.dom.background, this.className); |
|
|
|
util.removeClassName(this.dom.axis, this.className); |
|
|
|
} |
|
|
|
util.addClassName(this.dom.label, className); |
|
|
|
util.addClassName(this.dom.foreground, className); |
|
|
|
util.addClassName(this.dom.background, className); |
|
|
|
util.addClassName(this.dom.axis, className); |
|
|
|
this.className = className; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|