aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/styles-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/styles-controller.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);