- polymer
- polymer.auto_binding
- AutoBindingElement
- AutoBindingElement.created
constructor AutoBindingElement.created
AutoBindingElement.created()
Source
AutoBindingElement.created() : super.created() {
polymerCreated();
_self = templateBindFallback(this);
bindingDelegate = makeSyntax();
// delay stamping until polymer-ready so that auto-binding is not
// required to load last.
Polymer.onReady.then((_) {
attributes['bind'] = '';
// we don't bother with an explicit signal here, we could ust a MO
// if necessary
async((_) {
// note: this will marshall *all* the elements in the parentNode
// rather than just stamped ones. We'd need to use createInstance
// to fix this or something else fancier.
marshalNodeReferences(parentNode);
// template stamping is asynchronous so stamping isn't complete
// by polymer-ready; fire an event so users can use stamped elements
fire('template-bound');
});
});
}