diff options
author | Eric Guzman | 2012-05-16 14:14:25 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-16 14:14:25 -0700 |
commit | bbca3e05b39d43ce13c2f3e48cb33630ed7948b9 (patch) | |
tree | e58af8ca54b5ac21d42497986ff4ec3f4f2d1b33 /js/panels/css-panel/rule-list-container.reel/rule-list-container.js | |
parent | 73e98aef1ffa370c196c9c752d58dd4ed5f4faff (diff) | |
download | ninja-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/rule-list-container.js')
-rw-r--r-- | js/panels/css-panel/rule-list-container.reel/rule-list-container.js | 12 |
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 |