aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorEric Guzman2012-02-06 16:57:33 -0800
committerEric Guzman2012-02-06 17:20:32 -0800
commitc8c78a82aa4ec8ad8b53c6240f3b144ca113cf05 (patch)
tree25ab725c8c4bd5407af37bc2a65385b5257233d7 /js/controllers
parent34bb4763344f14c8055bc45ea01e5307c424c1c0 (diff)
downloadninja-c8c78a82aa4ec8ad8b53c6240f3b144ca113cf05.tar.gz
Styles Controller - Add some methods for modifying css keyframe rules
Diffstat (limited to 'js/controllers')
-rw-r--r--js/controllers/styles-controller.js29
1 files changed, 28 insertions, 1 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index 1dd91c8d..21024125 100644
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -804,7 +804,34 @@ var stylesController = exports.StylesController = Montage.create(Component, {
804 return browserValues; 804 return browserValues;
805 } 805 }
806 }, 806 },
807 807
808 ///// Set Keyframe Style
809 ///// For a given CSSKeyframesRule, we may add a style to the keyframe at
810 ///// given index.
811
812 setKeyframeStyle : {
813 value : function(rule, keyframeIndex, property, value, useImportant) {
814 return this.setStyle(rule.cssRules[keyframeIndex], property, value, useImportant);
815 }
816 },
817
818 ///// Set Keyframe Styles
819 ///// For a given CSSKeyframesRule, we may add styles to the keyframe at
820 ///// given index.
821
822 setKeyframeStyle : {
823 value : function(rule, keyframeIndex, property, value, useImportant) {
824 return this.setStyles(rule.cssRules[keyframeIndex], property, value, useImportant);
825 }
826 },
827
828 insertKeyframe : {
829 value : function() {
830
831 }
832 },
833
834
808 ///// Delete style 835 ///// Delete style
809 ///// Removes the property from the style declaration/rule 836 ///// Removes the property from the style declaration/rule
810 ///// Returns the rule 837 ///// Returns the rule