diff options
author | Nivesh Rajbhandari | 2012-02-22 16:45:08 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-22 16:45:08 -0800 |
commit | 1ed02c161f0fc063299a606e61ccece878a307a3 (patch) | |
tree | d28b88a62125446644a220ef706cabcb46dc15e7 /js/components/layout/subtool-button.reel/subtool-button.js | |
parent | 5272d5585b0fbae233d829ac9a9b5207838ec74c (diff) | |
parent | 2afef244a3f8124f8a049e504e9782c05904ce23 (diff) | |
download | ninja-1ed02c161f0fc063299a606e61ccece878a307a3.tar.gz |
Merge branch 'refs/heads/ninja-internal' into WebGLMaterials
Diffstat (limited to 'js/components/layout/subtool-button.reel/subtool-button.js')
-rwxr-xr-x | js/components/layout/subtool-button.reel/subtool-button.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/js/components/layout/subtool-button.reel/subtool-button.js b/js/components/layout/subtool-button.reel/subtool-button.js index d1adca43..2b066f24 100755 --- a/js/components/layout/subtool-button.reel/subtool-button.js +++ b/js/components/layout/subtool-button.reel/subtool-button.js | |||
@@ -35,7 +35,7 @@ exports.SubToolButton = Montage.create(Component, { | |||
35 | boundObjectPropertyPath: "selected", | 35 | boundObjectPropertyPath: "selected", |
36 | oneway: false | 36 | oneway: false |
37 | }); | 37 | }); |
38 | 38 | this.element.classList.add(this.data.id); | |
39 | } | 39 | } |
40 | }, | 40 | }, |
41 | 41 | ||
@@ -43,13 +43,9 @@ exports.SubToolButton = Montage.create(Component, { | |||
43 | enumerable: false, | 43 | enumerable: false, |
44 | value: function() { | 44 | value: function() { |
45 | if(this._selected) { | 45 | if(this._selected) { |
46 | this.element.classList.add( "buttonSelected" ); | 46 | this.element.classList.add("active"); |
47 | this.button.classList.remove( this.data.id + "Unpressed" ); | ||
48 | this.button.classList.add( this.data.id + "Pressed" ); | ||
49 | } else { | 47 | } else { |
50 | this.element.classList.remove( "buttonSelected" ); | 48 | this.element.classList.remove("active"); |
51 | this.button.classList.remove( this.data.id + "Pressed" ); | ||
52 | this.button.classList.add( this.data.id + "Unpressed" ); | ||
53 | } | 49 | } |
54 | } | 50 | } |
55 | }, | 51 | }, |