1 2 3 4 5 6 7 8 9 10 11 | 7x 7x 29x 29x 29x | import {EVENT} from "./enums"; import {PuzzleJs} from "./puzzle"; export const on = (event: EVENT) => { return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) { PuzzleJs.subscribe(event, descriptor.value.bind(target)); return descriptor; }; }; |