From bbca3e05b39d43ce13c2f3e48cb33630ed7948b9 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Wed, 16 May 2012 14:14:25 -0700 Subject: CSS Panel - Added flag to draw method to improve perceived loading time --- .../rule-list-container.reel/rule-list-container.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'js/panels/css-panel/rule-list-container.reel') 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, { _instanceToAdd : { value: null }, _appendElement : { value: null }, _lastDisplayedList : { value: null }, + ruleListDrawn : { value: null }, _displayedList : { value: null }, displayedList : { @@ -157,5 +158,16 @@ exports.RuleListContainer = Montage.create(Component, { } } } + + }, + + didDraw: { + value: function() { + if(this.ruleListDrawn === true) { + var stylesView = this.parentComponent.parentComponent; + stylesView.needsDraw = stylesView.hasStyles = true; + } + + } } }); \ No newline at end of file -- cgit v1.2.3