{"dependencies":[{"name":"/home/msdimos/桌面/workspace/doxjs/tsconfig.json","includedInParent":true,"mtime":1518708038618},{"name":"./index","loc":{"line":3,"column":22}}],"generated":{"js":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar index_1 = require(\"./index\");\nvar actions = {\n    inc: function (store, value) {\n        if (value === void 0) { value = 1; }\n        store.value += value;\n    },\n    dec: function (store, value) {\n        if (value === void 0) { value = 1; }\n        store.value -= value;\n    }\n};\nvar listeners = {\n    display: function (store) {\n        console.log(store.value);\n        console.log(this);\n    }\n};\nvar dox = new index_1.DoxJS({\n    value: 0\n});\ndox.bindActions(actions);\ndox.bindListeners(listeners);\ndox.subscribe(\"display\", false, {\n    word: \"Hello wolrd!\"\n});\ndox.dispatch(\"inc\", 11);\ndox.dispatch(\"dec\", 3);\n","map":{"version":3,"file":"test.js","sourceRoot":"","sources":["src/test.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAGhC,IAAM,OAAO,GAAG;IACZ,GAAG,EAAE,UAAC,KAAK,EAAE,KAAS;QAAT,sBAAA,EAAA,SAAS;QAClB,KAAK,CAAC,KAAK,IAAI,KAAK,CAAA;IACxB,CAAC;IACD,GAAG,EAAE,UAAC,KAAK,EAAE,KAAS;QAAT,sBAAA,EAAA,SAAS;QAClB,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC;IACzB,CAAC;CACJ,CAAA;AAED,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,UAAS,KAAK;QACnB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACJ,CAAA;AAED,IAAI,GAAG,GAAG,IAAI,aAAK,CAAC;IAChB,KAAK,EAAE,CAAC;CACX,CAAC,CAAC;AAEH,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AACzB,GAAG,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AAE7B,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,EAAE;IAC5B,IAAI,EAAE,cAAc;CACvB,CAAC,CAAC;AAEH,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACxB,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC","sourcesContent":["import { DoxJS } from './index';\n\n\nconst actions = {\n    inc: (store, value = 1) => {\n        store.value += value\n    },\n    dec: (store, value = 1) => {\n        store.value -= value;\n    }\n}\n\nconst listeners = {\n    display: function(store) {\n        console.log(store.value);\n        console.log(this);\n    }\n}\n\nlet dox = new DoxJS({\n    value: 0\n});\n\ndox.bindActions(actions);\ndox.bindListeners(listeners);\n\ndox.subscribe(\"display\", false, {\n    word: \"Hello wolrd!\"\n});\n\ndox.dispatch(\"inc\", 11);\ndox.dispatch(\"dec\", 3);\n"]}},"hash":"9442b72a80789e75cc0c0add7258bc40","cacheData":{"env":{}}}