| OLD | NEW |
| (Empty) | |
| 1 |
| 2 |
| 3 Polymer.Base._addFeature({ |
| 4 |
| 5 _registerFeatures: function() { |
| 6 // identity |
| 7 this._prepIs(); |
| 8 // inheritance |
| 9 this._prepExtends(); |
| 10 // factory |
| 11 this._prepConstructor(); |
| 12 // template |
| 13 this._prepTemplate(); |
| 14 // template markup |
| 15 this._prepAnnotations(); |
| 16 // accessors |
| 17 this._prepEffects(); |
| 18 // shared behaviors |
| 19 this._prepBehaviors(); |
| 20 // accessors part 2 |
| 21 this._prepBindings(); |
| 22 // dom encapsulation |
| 23 this._prepShady(); |
| 24 }, |
| 25 |
| 26 _prepBehavior: function(b) { |
| 27 this._addPropertyEffects(b.properties || b.accessors); |
| 28 this._addComplexObserverEffects(b.observers); |
| 29 }, |
| 30 |
| 31 _initFeatures: function() { |
| 32 // manage local dom |
| 33 this._poolContent(); |
| 34 // manage configuration |
| 35 this._setupConfigure(); |
| 36 // host stack |
| 37 this._pushHost(); |
| 38 // instantiate template |
| 39 this._stampTemplate(); |
| 40 // host stack |
| 41 this._popHost(); |
| 42 // concretize template references |
| 43 this._marshalAnnotationReferences(); |
| 44 // setup debouncers |
| 45 this._setupDebouncers(); |
| 46 // concretize effects on instance |
| 47 this._marshalInstanceEffects(); |
| 48 // acquire instance behaviors |
| 49 this._marshalBehaviors(); |
| 50 // acquire initial instance attribute values |
| 51 this._marshalAttributes(); |
| 52 // top-down initial distribution, configuration, & ready callback |
| 53 this._tryReady(); |
| 54 }, |
| 55 |
| 56 _marshalBehavior: function(b) { |
| 57 // publish attributes to instance |
| 58 this._installHostAttributes(b.hostAttributes); |
| 59 // establish listeners on instance |
| 60 this._listenListeners(b.listeners); |
| 61 } |
| 62 |
| 63 }); |
| 64 |
| OLD | NEW |