aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/document-bar.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/layout/document-bar.reel')
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.html8
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.js32
2 files changed, 20 insertions, 20 deletions
diff --git a/js/components/layout/document-bar.reel/document-bar.html b/js/components/layout/document-bar.reel/document-bar.html
index 945ab689..d107609e 100755
--- a/js/components/layout/document-bar.reel/document-bar.html
+++ b/js/components/layout/document-bar.reel/document-bar.html
@@ -1,4 +1,4 @@
1<!DOCTYPE html> 1<!doctype html>
2<!-- <copyright> 2<!-- <copyright>
3Copyright (c) 2012, Motorola Mobility, Inc 3Copyright (c) 2012, Motorola Mobility, Inc
4All Rights Reserved. 4All Rights Reserved.
@@ -72,9 +72,9 @@ POSSIBILITY OF SUCH DAMAGE.
72 "zoomControl": {"@": "hottext1"} 72 "zoomControl": {"@": "hottext1"}
73 } 73 }
74 } 74 }
75 } 75 }
76 </script> 76 </script>
77 77
78 78
79</head> 79</head>
80 80
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js
index 86c55267..890640b1 100755
--- a/js/components/layout/document-bar.reel/document-bar.js
+++ b/js/components/layout/document-bar.reel/document-bar.js
@@ -127,21 +127,21 @@ exports.DocumentBar = Montage.create(Component, {
127 value: 100 127 value: 100
128 }, 128 },
129 129
130 zoomFactor: { 130 zoomFactor: {
131 get: function() { return this._zoomFactor; }, 131 get: function() { return this._zoomFactor; },
132 132
133 set: function(value) 133 set: function(value)
134 { 134 {
135 if(value !== this._zoomFactor) 135 if(value !== this._zoomFactor)
136 { 136 {
137 this._zoomFactor = value; 137 this._zoomFactor = value;
138 if (!this._firstDraw) 138 if (!this._firstDraw)
139 { 139 {
140 this.application.ninja.stage.setZoom(value); 140 this.application.ninja.stage.setZoom(value);
141 } 141 }
142 } 142 }
143 } 143 }
144 }, 144 },
145 145
146 draw: { 146 draw: {
147 value: function() { 147 value: function() {
@@ -157,7 +157,7 @@ exports.DocumentBar = Montage.create(Component, {
157 this.codeView.classList.add("selected"); 157 this.codeView.classList.add("selected");
158 if(this.designView.classList.contains("selected")) this.designView.classList.toggle("selected"); 158 if(this.designView.classList.contains("selected")) this.designView.classList.toggle("selected");
159 } 159 }
160 160
161 } else if(this.type) { 161 } else if(this.type) {
162 this.designView.classList.remove("active"); 162 this.designView.classList.remove("active");
163 } 163 }