OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 @license |
| 3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --> |
| 10 <link rel="import" href="src/polymer-lib.html"> |
| 11 <link rel="import" href="src/micro/tag.html"> |
| 12 <link rel="import" href="src/micro/behaviors.html"> |
| 13 <link rel="import" href="src/micro/extends.html"> |
| 14 <link rel="import" href="src/micro/constructor.html"> |
| 15 <link rel="import" href="src/micro/properties.html"> |
| 16 <link rel="import" href="src/micro/attributes.html"> |
| 17 <link rel="import" href="src/micro/debouncer.html"> |
| 18 |
| 19 <script> |
| 20 |
| 21 Polymer.Base._addFeature({ |
| 22 |
| 23 _registerFeatures: function() { |
| 24 // identity |
| 25 this._prepIs(); |
| 26 // shared behaviors |
| 27 this._prepBehaviors(); |
| 28 // inheritance |
| 29 this._prepExtends(); |
| 30 // factory |
| 31 this._prepConstructor(); |
| 32 }, |
| 33 |
| 34 _prepBehavior: function() {}, |
| 35 |
| 36 _initFeatures: function() { |
| 37 // setup debouncers |
| 38 this._setupDebouncers(); |
| 39 // acquire behaviors |
| 40 this._marshalBehaviors(); |
| 41 }, |
| 42 |
| 43 _marshalBehavior: function(b) { |
| 44 // publish attributes to instance |
| 45 this._installHostAttributes(b.hostAttributes); |
| 46 } |
| 47 |
| 48 }); |
| 49 |
| 50 </script> |
| 51 |
OLD | NEW |