Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-runner-behavior-extracted.js

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-runner-behavior-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-runner-behavior-extracted.js b/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-runner-behavior-extracted.js
index 6600ec618723ce713a9c49fbf2d0857b044f2e7c..1c06f05e3ccb4b1a3adf24e072977df92cce9945 100644
--- a/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-runner-behavior-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-runner-behavior-extracted.js
@@ -2,9 +2,10 @@
/**
* `Polymer.NeonAnimationRunnerBehavior` adds a method to run animations.
- * @polymerBehavior
+ *
+ * @polymerBehavior Polymer.NeonAnimationRunnerBehavior
*/
- Polymer.NeonAnimationRunnerBehavior = [Polymer.NeonAnimatableBehavior, {
+ Polymer.NeonAnimationRunnerBehaviorImpl = {
properties: {
@@ -15,6 +16,7 @@
}
},
+ /** @type {?Object} */
_player: {
type: Object
}
@@ -45,7 +47,7 @@
},
_runAnimationEffects: function(allEffects) {
- return player = document.timeline.play(new GroupEffect(allEffects));
+ return document.timeline.play(new GroupEffect(allEffects));
},
_completeAnimations: function(allAnimations) {
@@ -56,6 +58,8 @@
/**
* Plays an animation with an optional `type`.
+ * @param {string=} type
+ * @param {!Object=} cookie
*/
playAnimation: function(type, cookie) {
var allConfigs = this.getAnimationConfig(type);
@@ -93,5 +97,10 @@
this._player.cancel();
}
}
+ };
- }];
+ /** @polymerBehavior Polymer.NeonAnimationRunnerBehavior */
+ Polymer.NeonAnimationRunnerBehavior = [
+ Polymer.NeonAnimatableBehavior,
+ Polymer.NeonAnimationRunnerBehaviorImpl
+ ];

Powered by Google App Engine
This is Rietveld 408576698