diff options
author | Eric Guzman | 2012-02-06 16:57:33 -0800 |
---|---|---|
committer | Eric Guzman | 2012-02-06 16:57:33 -0800 |
commit | b89ede5ba6e2389e623c9e15d4cb4329044eefb6 (patch) | |
tree | ac7069a2c90411dc79df0b58f615fba1bcf61626 | |
parent | bb8e0289ff170fd1a5256b99259c6ee5d3fdea17 (diff) | |
download | ninja-b89ede5ba6e2389e623c9e15d4cb4329044eefb6.tar.gz |
Styles Controller - Add some methods for modifying css keyframe rules
-rw-r--r-- | js/controllers/styles-controller.js | 29 |
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 |