aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEric Guzman2012-05-01 16:23:43 -0700
committerEric Guzman2012-05-01 16:23:43 -0700
commit9617e4d3870c9872dc1837a67a6f927fd2680476 (patch)
tree4195549c4ed23da1db0d58f6d1197281220202bf /js
parent084576ca2dcaaff1184338e0ec4a587ee0dacee7 (diff)
downloadninja-9617e4d3870c9872dc1837a67a6f927fd2680476.tar.gz
Styles Controller - Fix error when trying dispatch stylesheet change event
Diffstat (limited to 'js')
-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 f7c98023..3422427c 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -803,7 +803,9 @@ var stylesController = exports.StylesController = Montage.create(Component, {
803 ///// method to apply/test the new value 803 ///// method to apply/test the new value
804 dec.setProperty(property, value, priority); 804 dec.setProperty(property, value, priority);
805 805
806 this.styleSheetModified(rule.parentStyleSheet); 806 if(rule.parentStyleSheet) {
807 this.styleSheetModified(rule.parentStyleSheet);
808 }
807 809
808 ///// Return browser value for value we just set 810 ///// Return browser value for value we just set
809 return dec.getPropertyValue(property); 811 return dec.getPropertyValue(property);