chore(): update deps (#18856)

This commit is contained in:
Manu MA
2019-08-08 20:06:12 +02:00
committed by GitHub
parent a5d3c6bcd2
commit ea3fdae2dd
4 changed files with 238 additions and 172 deletions

View File

@ -1,7 +1,7 @@
/* tslint:disable */
import { fromEvent } from 'rxjs';
export function proxyInputs(Cmp: any, inputs: string[]) {
export const proxyInputs = (Cmp: any, inputs: string[]) => {
const Prototype = Cmp.prototype;
inputs.forEach(item => {
Object.defineProperty(Prototype, item, {
@ -11,9 +11,9 @@ export function proxyInputs(Cmp: any, inputs: string[]) {
},
});
});
}
};
export function proxyMethods(Cmp: any, methods: string[]) {
export const proxyMethods = (Cmp: any, methods: string[]) => {
const Prototype = Cmp.prototype;
methods.forEach(methodName => {
Prototype[methodName] = function() {
@ -21,8 +21,8 @@ export function proxyMethods(Cmp: any, methods: string[]) {
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
};
});
}
};
export function proxyOutputs(instance: any, el: any, events: string[]) {
export const proxyOutputs = (instance: any, el: any, events: string[]) => {
events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));
}
};