aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-declaration.reel/style-declaration.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel/style-declaration.reel/style-declaration.js')
-rw-r--r--js/panels/css-panel/style-declaration.reel/style-declaration.js17
1 files changed, 9 insertions, 8 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 61a65099..c679783e 100644
--- a/js/panels/css-panel/style-declaration.reel/style-declaration.js
+++ b/js/panels/css-panel/style-declaration.reel/style-declaration.js
@@ -85,6 +85,13 @@ exports.StyleDeclaration = Montage.create(Component, {
85 85
86 stylesArray = Array.prototype.slice.call(dec); 86 stylesArray = Array.prototype.slice.call(dec);
87 87
88 stylesArray.forEach(function(prop, index) {
89 this.styles.push({
90 name: prop,
91 value: dec.getPropertyValue(prop)
92 });
93 }, this);
94
88 if(this.includeEmptyStyle) { 95 if(this.includeEmptyStyle) {
89 this.styles.push({ 96 this.styles.push({
90 name : "property", 97 name : "property",
@@ -93,13 +100,6 @@ exports.StyleDeclaration = Montage.create(Component, {
93 }); 100 });
94 } 101 }
95 102
96 stylesArray.forEach(function(prop, index) {
97 this.styles.push({
98 name: prop,
99 value: dec.getPropertyValue(prop)
100 });
101 }, this);
102
103 this._declaration = dec; 103 this._declaration = dec;
104 this.needsDraw = this.needsSort = true; 104 this.needsDraw = this.needsSort = true;
105 } 105 }
@@ -218,7 +218,8 @@ exports.StyleDeclaration = Montage.create(Component, {
218 } 218 }
219 } 219 }
220 220
221 this.arrayController.addObjects(styleDescriptor); 221 this.styles.push(styleDescriptor);
222 this.arrayController.organizeObjects();
222 } 223 }
223 }, 224 },
224 225