Files
polymer/polymer.html

98 lines
3.2 KiB
HTML
Raw Normal View History

2014-11-19 16:45:28 -08:00
<!--
@license
Copyright (c) 2014 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
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="import" href="polymer-mini.html">
<link rel="import" href="src/standard/annotations.html">
<link rel="import" href="src/standard/events.html">
<link rel="import" href="src/standard/utils.html">
<link rel="import" href="src/standard/effects.html">
<link rel="import" href="src/standard/configure.html">
<link rel="import" href="src/standard/notify-path.html">
<link rel="import" href="src/standard/resolveUrl.html">
<link rel="import" href="src/standard/styling.html">
<link rel="import" href="src/standard/x-styling.html">
<script>
Polymer.Base._addFeature({
_registerFeatures: function() {
// identity
2015-04-09 22:28:34 -07:00
this._prepIs();
// shared methods
//this._prepMixins();
// shared behaviors
//this._prepBehaviors();
// inheritance
this._prepExtends();
// factory
this._prepConstructor();
// template
this._prepTemplate();
// template markup
this._prepAnnotations();
// shared behaviors
this._prepBehaviors();
// accessors
//this._prepEffects();
// dom encapsulation
this._prepShady();
},
_prepBehavior: function(b) {
this._addPropertyEffects(b.properties || b.accessors);
this._addObserverEffects(b.observers);
},
_initFeatures: function() {
// manage local dom
this._poolContent();
// manage configuration
this._setupConfigure();
// host stack
2015-04-01 12:44:12 -07:00
this._pushHost();
// instantiate template
this._stampTemplate();
// host stack
this._popHost();
// concretize template references
2015-04-01 12:44:12 -07:00
this._marshalAnnotationReferences();
// concretize effects on instance
this._marshalInstanceEffects();
2015-04-16 00:12:56 -07:00
// acquire instance behaviors
this._marshalBehaviors();
2015-04-16 00:12:56 -07:00
// acquire initial instance attribute values
this._marshalAttributes();
// establish listeners on instance
//this._marshalListeners();
// initial distribution (?)
this._readyContent();
},
_marshalBehavior: function(b) {
// publish attributes to instance
this._installHostAttributes(b.hostAttributes);
// establish listeners on instance
this._listenListeners(b.listeners);
this._listenKeyPresses(b.keyPresses);
}
});
</script>
<link rel="import" href="src/lib/x-style.html">
<link rel="import" href="src/lib/template/x-autobind.html">
<link rel="import" href="src/lib/template/x-template.html">
<link rel="import" href="src/lib/template/x-repeat.html">
2015-03-26 11:47:25 -07:00
<link rel="import" href="src/lib/template/x-array-selector.html">
<link rel="import" href="src/lib/template/x-if.html">