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

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

Issue 1901343004: [Polymer] update third_party polymer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new pull Created 4 years, 8 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 1c88739c99616cc4ed48ad378c437927a580f959..5f33034762b75860933ca6aa74b20c046815c016 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
@@ -7,13 +7,6 @@
properties: {
- _animationMeta: {
- type: Object,
- value: function() {
- return new Polymer.IronMeta({type: 'animation'});
- }
- },
-
/** @type {?Object} */
_player: {
type: Object
@@ -25,9 +18,9 @@
var allAnimations = [];
if (allConfigs.length > 0) {
for (var config, index = 0; config = allConfigs[index]; index++) {
- var animationConstructor = this._animationMeta.byKey(config.name);
- if (animationConstructor) {
- var animation = animationConstructor && new animationConstructor();
+ var animation = document.createElement(config.name);
+ // is this element actually a neon animation?
+ if (animation.isNeonAnimation) {
var effect = animation.configure(config);
if (effect) {
allAnimations.push({
@@ -37,7 +30,7 @@
});
}
} else {
- console.warn(this.is + ':', config.name, 'not found!');
+ Polymer.Base._warn(this.is + ':', config.name, 'not found!');
}
}
}

Powered by Google App Engine
This is Rietveld 408576698