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

Unified Diff: third_party/polymer/v1_0/components/neon-animation/neon-animation-runner-behavior.html

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/neon-animation/neon-animation-runner-behavior.html
diff --git a/third_party/polymer/v1_0/components/neon-animation/neon-animation-runner-behavior.html b/third_party/polymer/v1_0/components/neon-animation/neon-animation-runner-behavior.html
index ce1211e466b276e5f92adda17d4f921371f000e5..bed94fc8fbe06b08a851908b6c068880e7f0cc32 100644
--- a/third_party/polymer/v1_0/components/neon-animation/neon-animation-runner-behavior.html
+++ b/third_party/polymer/v1_0/components/neon-animation/neon-animation-runner-behavior.html
@@ -14,9 +14,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
/**
* `Polymer.NeonAnimationRunnerBehavior` adds a method to run animations.
- * @polymerBehavior
+ *
+ * @polymerBehavior Polymer.NeonAnimationRunnerBehavior
*/
- Polymer.NeonAnimationRunnerBehavior = [Polymer.NeonAnimatableBehavior, {
+ Polymer.NeonAnimationRunnerBehaviorImpl = {
properties: {
@@ -27,6 +28,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}
},
+ /** @type {?Object} */
_player: {
type: Object
}
@@ -57,7 +59,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
},
_runAnimationEffects: function(allEffects) {
- return player = document.timeline.play(new GroupEffect(allEffects));
+ return document.timeline.play(new GroupEffect(allEffects));
},
_completeAnimations: function(allAnimations) {
@@ -68,6 +70,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
/**
* Plays an animation with an optional `type`.
+ * @param {string=} type
+ * @param {!Object=} cookie
*/
playAnimation: function(type, cookie) {
var allConfigs = this.getAnimationConfig(type);
@@ -105,6 +109,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
this._player.cancel();
}
}
+ };
- }];
+ /** @polymerBehavior Polymer.NeonAnimationRunnerBehavior */
+ Polymer.NeonAnimationRunnerBehavior = [
+ Polymer.NeonAnimatableBehavior,
+ Polymer.NeonAnimationRunnerBehaviorImpl
+ ];
</script>

Powered by Google App Engine
This is Rietveld 408576698