diff options
author | Jose Antonio Marquez | 2012-05-16 15:42:37 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-16 15:42:37 -0700 |
commit | 857aafee732b6a85fa155ff4a05d1b8fde48f09d (patch) | |
tree | e06d330caee280aa05aec46391979e9abdcf974c /node_modules/montage/ui/button.reel/button.js | |
parent | 5cc5d29736d8bf253e3a168cdd6443e839ffb23c (diff) | |
parent | fd54dabad7cbc27a0efb0957155c00d578912909 (diff) | |
download | ninja-857aafee732b6a85fa155ff4a05d1b8fde48f09d.tar.gz |
Merge branch 'refs/heads/Ninja-DOM-Architecture' into Document
Diffstat (limited to 'node_modules/montage/ui/button.reel/button.js')
-rw-r--r-- | node_modules/montage/ui/button.reel/button.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/montage/ui/button.reel/button.js b/node_modules/montage/ui/button.reel/button.js index eead3124..9f1342f6 100644 --- a/node_modules/montage/ui/button.reel/button.js +++ b/node_modules/montage/ui/button.reel/button.js | |||
@@ -354,6 +354,12 @@ var Button = exports.Button = Montage.create(NativeControl, /** @lends module:"m | |||
354 | this._element.classList.remove("disabled"); | 354 | this._element.classList.remove("disabled"); |
355 | } | 355 | } |
356 | 356 | ||
357 | if (this._active) { | ||
358 | this._element.classList.add("active"); | ||
359 | } else { | ||
360 | this._element.classList.remove("active"); | ||
361 | } | ||
362 | |||
357 | this._drawLabel(this.label); | 363 | this._drawLabel(this.label); |
358 | } | 364 | } |
359 | } | 365 | } |