UNPKG

onix-core

Version:
35 lines 892 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventHandler1 = exports.EventHandler = void 0; class EventHandler { /** * constructor */ constructor(Callback, Context) { this.Callback = Callback; this.Context = Context; } /** * Calls the method for handling events in the context of the called object. */ invoke(args) { this.Callback.call(this.Context, args); } } exports.EventHandler = EventHandler; class EventHandler1 extends EventHandler { /** * constructor */ constructor(Callback, Context) { super(Callback, Context); } /** * Calls the method for handling events in the context of the called object. */ invoke(args) { super.invoke(args); } } exports.EventHandler1 = EventHandler1; //# sourceMappingURL=EventHandler.js.map