aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Guzman2012-05-01 16:26:51 -0700
committerEric Guzman2012-05-01 16:26:51 -0700
commitc23e9b12c42c180cdeda76be67ae3a27833efc36 (patch)
tree11b202e9f4c3ab9bdffe3cc648369d8751e99399
parente3fa4c7db57b63c5ac604c9420062de5d0fe413a (diff)
downloadninja-c23e9b12c42c180cdeda76be67ae3a27833efc36.tar.gz
Styles Controller - Fix error when trying dispatch stylesheet change event
-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 ec4314f9..62cbb574 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -795,7 +795,9 @@ var stylesController = exports.StylesController = Montage.create(Component, {
795 ///// method to apply/test the new value 795 ///// method to apply/test the new value
796 dec.setProperty(property, value, priority); 796 dec.setProperty(property, value, priority);
797 797
798 this.styleSheetModified(rule.parentStyleSheet); 798 if(rule.parentStyleSheet) {
799 this.styleSheetModified(rule.parentStyleSheet);
800 }
799 801
800 ///// Return browser value for value we just set 802 ///// Return browser value for value we just set
801 return dec.getPropertyValue(property); 803 return dec.getPropertyValue(property);