aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Guzman2012-06-29 09:09:56 -0700
committerEric Guzman2012-06-29 09:09:56 -0700
commit44903a3b55b4343f26de7cc4c60a2723e3131793 (patch)
treeeffa4de12485dda97bb5430f36e074a623c2be72
parentd547c75824e05b500b7ca4a9ee24e0168c4dc16b (diff)
downloadninja-44903a3b55b4343f26de7cc4c60a2723e3131793.tar.gz
Styles Controller Patch to ignore unfound rules from getMatchedCSSRules
-rwxr-xr-xjs/controllers/styles-controller.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index 0f847653..2282794c 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -629,7 +629,7 @@ var stylesController = exports.StylesController = Montage.create(Component, {
629 if(!rule) { 629 if(!rule) {
630 ///// This should never be hit if providing cssText from existing rule (like those 630 ///// This should never be hit if providing cssText from existing rule (like those
631 ///// returned from getMatchedCSSRules() 631 ///// returned from getMatchedCSSRules()
632 console.warn('StylesController::_getRuleWithCSSText - No rule found with given cssText.'); 632 //console.warn('StylesController::_getRuleWithCSSText - No rule found with given cssText.');
633 } 633 }
634 634
635 return rule; 635 return rule;
@@ -653,6 +653,8 @@ var stylesController = exports.StylesController = Montage.create(Component, {
653 }, this); 653 }, this);
654 654
655 rules = mappedRules.filter(function(rule) { 655 rules = mappedRules.filter(function(rule) {
656 if(!rule) { return false; }
657
656 //// useStageStyleSheet flag indicates whether to only return rules from the stylesheet, 658 //// useStageStyleSheet flag indicates whether to only return rules from the stylesheet,
657 //// or only use rules for other stylesheets 659 //// or only use rules for other stylesheets
658 660