Skip to content

Commit

Permalink
The setAttrs() method in the base Widget class now sets both the DOM
Browse files Browse the repository at this point in the history
node attribute and the corresponding property value.
  • Loading branch information
cederberg committed May 11, 2012
1 parent 56612b1 commit 3894e60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugin/system/files/js/RapidContext_Widget.js
Expand Up @@ -279,8 +279,12 @@ RapidContext.Widget.prototype.setAttrs = function (attrs) {
this._setHidden(value);
} else if (value != null) {
MochiKit.DOM.setNodeAttribute(this, name, value);
if (typeof(value) != "object") {
this[name] = value;
}
} else {
this.removeAttribute(name);
delete this[name];
}
}
};
Expand Down

0 comments on commit 3894e60

Please sign in to comment.