update components
This commit is contained in:
parent
cc555065f7
commit
c3fd6c022f
54 changed files with 296 additions and 87 deletions
|
@ -1,4 +1,5 @@
|
|||
<!--
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
|
@ -21,13 +22,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
properties: {
|
||||
|
||||
_animationMeta: {
|
||||
type: Object,
|
||||
value: function() {
|
||||
return new Polymer.IronMeta({type: 'animation'});
|
||||
}
|
||||
},
|
||||
|
||||
/** @type {?Object} */
|
||||
_player: {
|
||||
type: Object
|
||||
|
@ -39,9 +33,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue