UNPKG

app-decorators

Version:

Collection of useful ES7 Decorators, writtin in ES6, that can be used for building webapps

63 lines (46 loc) 2.34 kB
System.register(['app-decorators/src/libs/element-to-function'], function (_export, _context) { "use strict"; var _elementToFunc, initCoreMap, initActionMap, initOnMap, initViewMap, initStyleMap; return { setters: [function (_appDecoratorsSrcLibsElementToFunction) { _elementToFunc = _appDecoratorsSrcLibsElementToFunction.default; }], execute: function () { _export('initCoreMap', initCoreMap = function initCoreMap(storage, Class) { if (!storage.has(Class)) { storage.set(Class, new Map([['@callbacks', new Map([['created', []], ['attached', []], ['detached', []]])]])); } }); _export('initActionMap', initActionMap = function initActionMap(storage, Class) { var map = storage.get(Class); if (!map.has('@action')) { map.set('@action', new Map([["events", []], ["callbacksDefined", false]])); } }); _export('initOnMap', initOnMap = function initOnMap(storage, Class) { var map = storage.get(Class); if (!map.has('@on')) { map.set('@on', new Map([["events", new Map([["local", []], ["context", []]])], ["callbacksDefined", false]])); } }); _export('initViewMap', initViewMap = function initViewMap(storage, Class) { var map = storage.get(Class); if (!map.has('@view')) { map.set('@view', new Map([["bind", []], ["callbacksDefined", false]])); } }); _export('initStyleMap', initStyleMap = function initStyleMap(storage, Class) { var map = storage.get(Class); if (!map.has('@style')) { map.set('@style', new Map([["stylesheets", null], ["callbacksDefined", false], ["referenceNodes", new Map()], ["stylesheetStates", []]])); } }); _export('initCoreMap', initCoreMap); _export('initActionMap', initActionMap); _export('initOnMap', initOnMap); _export('initViewMap', initViewMap); _export('initStyleMap', initStyleMap); } }; }); //# sourceMappingURL=init-maps.js.map