UNPKG

app-decorators-todomvc

Version:
25 lines (19 loc) 796 B
System.register(["app-decorators/src/libs/element-to-function"], function (_export, _context) { "use strict"; var _elementToFunc, trigger, forEach; return { setters: [function (_appDecoratorsSrcLibsElementToFunction) { _elementToFunc = _appDecoratorsSrcLibsElementToFunction.default; }], execute: function () { _export("trigger", trigger = function trigger(event, params) { var customEvent = new CustomEvent(event, { bubbles: true }); customEvent.params = params; this.dispatchEvent(customEvent); }); _export("forEach", forEach = Array.prototype.forEach); _export("trigger", trigger); _export("forEach", forEach); } }; });