use of elemental2.dom.HTMLScriptElement in project vue-gwt by Axellience.
the class VueGWTObserverManager method captureVueObserver.
/**
* Capture the Vue Observer by creating a Vue Instance on the fly
*/
private void captureVueObserver() {
HTMLScriptElement scriptElement = (HTMLScriptElement) DomGlobal.document.createElement("script");
scriptElement.text = "new Vue({created: function () {VueGWT.VueGWTObserverManager.get().customizeVueObserverPrototype(this.$data.__ob__.__proto__);}});";
DomGlobal.document.body.appendChild(scriptElement);
}
use of elemental2.dom.HTMLScriptElement in project vue-gwt by Axellience.
the class VueCustomElementLibInjector method ensureInjected.
static void ensureInjected() {
if (isCustomElementInjected())
return;
HTMLScriptElement scriptElement = (HTMLScriptElement) DomGlobal.document.createElement("script");
scriptElement.text = VUE_CUSTOM_ELEMENT;
DomGlobal.document.body.appendChild(scriptElement);
}
use of elemental2.dom.HTMLScriptElement in project vue-gwt by Axellience.
the class VueLibDevInjector method ensureInjected.
static void ensureInjected() {
if (isVueLibInjected())
return;
HTMLScriptElement scriptElement = (HTMLScriptElement) DomGlobal.document.createElement("script");
scriptElement.text = VUE_DEV_RUNTIME;
DomGlobal.document.body.appendChild(scriptElement);
}
use of elemental2.dom.HTMLScriptElement in project vue-gwt by Axellience.
the class VueLibInjector method ensureInjected.
static void ensureInjected() {
if (isVueLibInjected())
return;
HTMLScriptElement scriptElement = (HTMLScriptElement) DomGlobal.document.createElement("script");
scriptElement.text = VUE_RUNTIME;
DomGlobal.document.body.appendChild(scriptElement);
}
Aggregations