Skip to content

Commit

Permalink
fix addClass没有进行trim操作的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed Nov 19, 2014
1 parent c6e751a commit cb1549e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,10 @@
}
},
_remove: function(cls) {
this._set((" " + this + " ").replace(" " + cls + " ", " ").trim())
this._set((" " + this + " ").replace(" " + cls + " ", " "))
},
__set: function(cls) {
cls = cls.trim()
var node = this.node
if (typeof node.className === "string") {
node.className = cls
Expand Down

0 comments on commit cb1549e

Please sign in to comment.