aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorEric Guzman2012-02-06 16:57:33 -0800
committerEric Guzman2012-02-06 16:57:33 -0800
commitb89ede5ba6e2389e623c9e15d4cb4329044eefb6 (patch)
treeac7069a2c90411dc79df0b58f615fba1bcf61626 /js/controllers
parentbb8e0289ff170fd1a5256b99259c6ee5d3fdea17 (diff)
downloadninja-b89ede5ba6e2389e623c9e15d4cb4329044eefb6.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