aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/rule-list-container.reel
diff options
context:
space:
mode:
authorEric Guzman2012-05-16 14:14:25 -0700
committerEric Guzman2012-05-16 14:14:25 -0700
commitbbca3e05b39d43ce13c2f3e48cb33630ed7948b9 (patch)
treee58af8ca54b5ac21d42497986ff4ec3f4f2d1b33 /js/panels/css-panel/rule-list-container.reel
parent73e98aef1ffa370c196c9c752d58dd4ed5f4faff (diff)
downloadninja-bbca3e05b39d43ce13c2f3e48cb33630ed7948b9.tar.gz
CSS Panel - Added flag to draw method to improve perceived loading time
Diffstat (limited to 'js/panels/css-panel/rule-list-container.reel')
-rw-r--r--js/panels/css-panel/rule-list-container.reel/rule-list-container.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js
index 50d69093..4ee340e4 100644
--- a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js
+++ b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js
@@ -11,6 +11,7 @@ exports.RuleListContainer = Montage.create(Component, {
11 _instanceToAdd : { value: null }, 11 _instanceToAdd : { value: null },
12 _appendElement : { value: null }, 12 _appendElement : { value: null },
13 _lastDisplayedList : { value: null }, 13 _lastDisplayedList : { value: null },
14 ruleListDrawn : { value: null },
14 15
15 _displayedList : { value: null }, 16 _displayedList : { value: null },
16 displayedList : { 17 displayedList : {
@@ -157,5 +158,16 @@ exports.RuleListContainer = Montage.create(Component, {
157 } 158 }
158 } 159 }
159 } 160 }
161
162 },
163
164 didDraw: {
165 value: function() {
166 if(this.ruleListDrawn === true) {
167 var stylesView = this.parentComponent.parentComponent;
168 stylesView.needsDraw = stylesView.hasStyles = true;
169 }
170
171 }
160 } 172 }
161}); \ No newline at end of file 173}); \ No newline at end of file