Starts polymer by hooking the polymer.js code. Note: this function is not meant to be invoked directly by application developers. It is invoked by initPolymer.
Future startPolymer() {
// First wait for all html imports to finish, then run the rest of the
// initializers.
return initWebComponents(initAll: false).then((_) {
// Polymer js is now loaded, hook it before running @CustomTag annotations.
if (_startPolymerCalled) throw 'Initialization was already done.';
_startPolymerCalled = true;
_hookJsPolymer();
}).then((_) => initWebComponents()).then((_) {
Polymer.registerSync('auto-binding-dart', AutoBindingElement,
extendsTag: 'template');
_watchWaitingFor();
Polymer._onInitDone.complete();
});
}