diff options
author | hwc487 | 2012-03-23 13:49:03 -0700 |
---|---|---|
committer | hwc487 | 2012-03-23 13:49:03 -0700 |
commit | 51478dbad8290f55eeab9efdfb8c2cbe24b12b10 (patch) | |
tree | 1524c53d027d1f2f8cbb759f61e4d73b52b00481 /js/components/tools-properties/rect-properties.reel/rect-properties.js | |
parent | 31e924e1b8b8da8342b3ff2341c8284915486c0b (diff) | |
parent | bc8b0c17023ddea6d77150694a777e104ef99cbc (diff) | |
download | ninja-51478dbad8290f55eeab9efdfb8c2cbe24b12b10.tar.gz |
Merge branch 'montage-integration' of github.com:Motorola-Mobility/ninja-internal into integration
Conflicts:
js/io/system/ninjalibrary.json
Diffstat (limited to 'js/components/tools-properties/rect-properties.reel/rect-properties.js')
-rwxr-xr-x | js/components/tools-properties/rect-properties.reel/rect-properties.js | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/js/components/tools-properties/rect-properties.reel/rect-properties.js b/js/components/tools-properties/rect-properties.reel/rect-properties.js index b2de6ff7..f023f4bb 100755 --- a/js/components/tools-properties/rect-properties.reel/rect-properties.js +++ b/js/components/tools-properties/rect-properties.reel/rect-properties.js | |||
@@ -19,7 +19,8 @@ exports.RectProperties = Montage.create(ToolProperties, { | |||
19 | 19 | ||
20 | _subPrepare: { | 20 | _subPrepare: { |
21 | value: function() { | 21 | value: function() { |
22 | this.lockButton.addEventListener("click", this, false); | 22 | this.lockButton.identifier = "lockButton"; |
23 | this.lockButton.addEventListener("action", this, false); | ||
23 | 24 | ||
24 | this._setBindings([this.TRRadiusControl, this.BLRadiusControl, this.BRRadiusControl]); | 25 | this._setBindings([this.TRRadiusControl, this.BLRadiusControl, this.BRRadiusControl]); |
25 | this._setCap([this.TLRadiusControl,this.TRRadiusControl, this.BLRadiusControl, this.BRRadiusControl]); | 26 | this._setCap([this.TLRadiusControl,this.TRRadiusControl, this.BLRadiusControl, this.BRRadiusControl]); |
@@ -27,21 +28,16 @@ exports.RectProperties = Montage.create(ToolProperties, { | |||
27 | } | 28 | } |
28 | }, | 29 | }, |
29 | 30 | ||
30 | handleClick: { | 31 | handleLockButtonAction: { |
31 | value: function(event) { | 32 | value: function(event) { |
32 | this._unlocked = !this._unlocked; | 33 | this.TRRadiusControl.enabled = this.BLRadiusControl.enabled = this.BRRadiusControl.enabled = !this.lockButton.pressed; |
33 | 34 | ||
34 | this.TRRadiusControl.enabled = this.BLRadiusControl.enabled = this.BRRadiusControl.enabled = this._unlocked; | 35 | if(this.lockButton.pressed) { |
35 | |||
36 | if(this._unlocked) { | ||
37 | this.lockButton.classList.remove("LockToolUp"); | ||
38 | this.lockButton.classList.add("UnLockToolUp"); | ||
39 | this._removeBindings([this.TRRadiusControl, this.BLRadiusControl, this.BRRadiusControl]); | ||
40 | } else { | ||
41 | this.lockButton.classList.remove("UnLockToolUp"); | ||
42 | this.lockButton.classList.add("LockToolUp"); | ||
43 | this._setBindings([this.TRRadiusControl, this.BLRadiusControl, this.BRRadiusControl]); | 36 | this._setBindings([this.TRRadiusControl, this.BLRadiusControl, this.BRRadiusControl]); |
37 | } else { | ||
38 | this._removeBindings([this.TRRadiusControl, this.BLRadiusControl, this.BRRadiusControl]); | ||
44 | } | 39 | } |
40 | |||
45 | } | 41 | } |
46 | }, | 42 | }, |
47 | 43 | ||