aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-declaration.reel/style-declaration.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-31 15:39:41 -0700
committerJose Antonio Marquez2012-05-31 15:39:41 -0700
commit9c961c9ef3819f3a8e825f12ab8f5ed8507f9b18 (patch)
tree90e7217f3c8086f9bdaac6ef4826fb14fc72ae43 /js/panels/css-panel/style-declaration.reel/style-declaration.js
parent0ed38667daa2466963d940f2a3cec0b06743ac5d (diff)
parent6042bdc5f2aada4412912fd01602d32c9088dc26 (diff)
downloadninja-9c961c9ef3819f3a8e825f12ab8f5ed8507f9b18.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into Document
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.js10
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 });