aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-declaration.reel
diff options
context:
space:
mode:
authorEric Guzman2012-05-18 11:26:35 -0700
committerEric Guzman2012-05-18 11:26:35 -0700
commit18c260f5f55608d4774aea27f6c2d23e89921361 (patch)
tree885dc5595f34a5527f596388e70862cce6ea3ba8 /js/panels/css-panel/style-declaration.reel
parent1792d1f72889bfb4c48d32d950d3b680abf0a4c8 (diff)
downloadninja-18c260f5f55608d4774aea27f6c2d23e89921361.tar.gz
Style Declaration - Fix update method to prevent duplicate styles in list
Diffstat (limited to 'js/panels/css-panel/style-declaration.reel')
-rw-r--r--js/panels/css-panel/style-declaration.reel/style-declaration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/panels/css-panel/style-declaration.reel/style-declaration.js b/js/panels/css-panel/style-declaration.reel/style-declaration.js
index 5aae9c6e..75ea18cf 100644
--- a/js/panels/css-panel/style-declaration.reel/style-declaration.js
+++ b/js/panels/css-panel/style-declaration.reel/style-declaration.js
@@ -158,7 +158,7 @@ exports.StyleDeclaration = Montage.create(Component, {
158 158
159 ///// Style component exists for property 159 ///// Style component exists for property
160 ///// Update its value 160 ///// Update its value
161 if(i) { 161 if(i !== undefined) {
162 this.styles[i].value = this.declaration.getPropertyValue(prop); 162 this.styles[i].value = this.declaration.getPropertyValue(prop);
163 usedIndices.push(i); 163 usedIndices.push(i);
164 } else { 164 } else {