chore(): update stencil

This commit is contained in:
Manu Mtz.-Almeida
2019-07-05 19:33:22 +02:00
parent d71c1cd6b0
commit 1add112be6
8 changed files with 104 additions and 97 deletions

View File

@ -6,7 +6,9 @@ export function proxyInputs(Cmp: any, inputs: string[]) {
inputs.forEach(item => {
Object.defineProperty(Prototype, item, {
get() { return this.el[item]; },
set(val: any) { this.el[item] = val; },
set(val: any) {
this.z.runOutsideAngular(() => this.el[item] = val);
},
});
});
}
@ -16,7 +18,7 @@ export function proxyMethods(Cmp: any, methods: string[]) {
methods.forEach(methodName => {
Prototype[methodName] = function() {
const args = arguments;
return this.el.componentOnReady().then((el: any) => el[methodName].apply(el, args));
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
};
});
}