diff options
author | Eric Guzman | 2012-05-27 17:19:07 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-27 17:19:07 -0700 |
commit | f277cbad9bbfc077fc37546758b85408419951f2 (patch) | |
tree | 80615314dc5ecb371989663411f5781d4279c10d /js/panels/css-panel/style-declaration.reel/style-declaration.js | |
parent | a00e1f30c3da3053574c982ddfacca12e32c12b2 (diff) | |
download | ninja-f277cbad9bbfc077fc37546758b85408419951f2.tar.gz |
CSS Panel - Prevent Animation on New Style
Diffstat (limited to 'js/panels/css-panel/style-declaration.reel/style-declaration.js')
-rw-r--r-- | js/panels/css-panel/style-declaration.reel/style-declaration.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/panels/css-panel/style-declaration.reel/style-declaration.js b/js/panels/css-panel/style-declaration.reel/style-declaration.js index 57cbdb63..6187989b 100644 --- a/js/panels/css-panel/style-declaration.reel/style-declaration.js +++ b/js/panels/css-panel/style-declaration.reel/style-declaration.js | |||
@@ -216,7 +216,15 @@ exports.StyleDeclaration = Montage.create(Component, { | |||
216 | }, | 216 | }, |
217 | 217 | ||
218 | addNewStyle : { | 218 | addNewStyle : { |
219 | value: function() { | 219 | value: function(preventAnimation) { |
220 | if(preventAnimation) { | ||
221 | this.element.classList.add('css-animation-prevent'); | ||
222 | |||
223 | setTimeout(function() { | ||
224 | this.element.classList.remove('css-animation-prevent'); | ||
225 | }.bind(this), 1000); | ||
226 | } | ||
227 | |||
220 | this.addStyle('property', 'value', { | 228 | this.addStyle('property', 'value', { |
221 | isEmpty : true | 229 | isEmpty : true |
222 | }); | 230 | }); |