| OLD | NEW |
| 1 | 1 |
| 2 | 2 |
| 3 /** | 3 /** |
| 4 * Use `Polymer.NeonSharedElementAnimationBehavior` to implement shared elemen
t animations. | 4 * Use `Polymer.NeonSharedElementAnimationBehavior` to implement shared elemen
t animations. |
| 5 * @polymerBehavior | 5 * @polymerBehavior Polymer.NeonSharedElementAnimationBehavior |
| 6 */ | 6 */ |
| 7 Polymer.NeonSharedElementAnimationBehavior = [Polymer.NeonAnimationBehavior, { | 7 Polymer.NeonSharedElementAnimationBehaviorImpl = { |
| 8 | 8 |
| 9 properties: { | 9 properties: { |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Cached copy of shared elements. | 12 * Cached copy of shared elements. |
| 13 */ | 13 */ |
| 14 sharedElements: { | 14 sharedElements: { |
| 15 type: Object | 15 type: Object |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 41 return null; | 41 return null; |
| 42 } | 42 } |
| 43 | 43 |
| 44 this.sharedElements = { | 44 this.sharedElements = { |
| 45 from: from, | 45 from: from, |
| 46 to: to | 46 to: to |
| 47 }; | 47 }; |
| 48 return this.sharedElements; | 48 return this.sharedElements; |
| 49 } | 49 } |
| 50 | 50 |
| 51 }]; | 51 }; |
| 52 | 52 |
| 53 /** @polymerBehavior Polymer.NeonSharedElementAnimationBehavior */ |
| 54 Polymer.NeonSharedElementAnimationBehavior = [ |
| 55 Polymer.NeonAnimationBehavior, |
| 56 Polymer.NeonSharedElementAnimationBehaviorImpl |
| 57 ]; |
| 58 |
| OLD | NEW |