diff options
author | Valerio Virgillito | 2012-05-16 15:23:48 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-16 15:23:48 -0700 |
commit | 13ae16997d4bbca14e255d5989d1c44a76eac72c (patch) | |
tree | d9ebb1dcc6bebee4cb910b950ecb67c1a2d593cd /node_modules/montage/ui/button.reel/button.js | |
parent | 99f16ae08fbb0a6dfe6008c9833f2253b18c19e5 (diff) | |
download | ninja-13ae16997d4bbca14e255d5989d1c44a76eac72c.tar.gz |
montage v.0.10 integration
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
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 | } |