Skip to content

Commit

Permalink
Merge pull request #66 from mrvini/master
Browse files Browse the repository at this point in the history
Changes that address even-pubsub module updates
  • Loading branch information
RIAEvangelist authored Oct 6, 2016
2 parents cfaad48 + e18a556 commit 9c306bc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
9 changes: 7 additions & 2 deletions dispatchers/action.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
'use strict';
/**
* @module action
*/


awesome.requireScript(`${awesome.bower}event-pubsub/event-pubsub-browser.js`);
awesome.requireScript(`${awesome.path}dispatchers/store.js`);

(
function(){
const events=new pubsub;
let store=null;
const events = new window.EventPubSub();
let store = null;

function init(e){
if(e && e.detail!==`${awesome.path}dispatchers/store.js`){
Expand Down
5 changes: 4 additions & 1 deletion dispatchers/store.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
'use strict';
/**
* @module dispatchers/store
*/

awesome.requireScript(`${awesome.bower}event-pubsub/event-pubsub-browser.js`);

(
function(){
const events=new pubsub;
const events=new window.EventPubSub();

/**
* awesome dispatcher for stores, uses event-pubsub
Expand Down
8 changes: 6 additions & 2 deletions stores/store.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
'use strict';

/**
* @module store
*/

awesome.requireScript(`${awesome.path}dispatchers/store.js`);
awesome.requireScript(`${awesome.path}stores/constants.js`);
awesome.requireScript(`${awesome.bower}event-pubsub/event-pubsub-browser.js`);
Expand All @@ -20,8 +24,8 @@ awesome.requireScript(`${awesome.bower}js-message/js-message-vanilla.js`);
*/
class Store{
constructor(){
const events=new pubsub;
this._events=events;
const events = new window.EventPubSub();
this._events = events;
Object.defineProperties(
this,
{
Expand Down

0 comments on commit 9c306bc

Please sign in to comment.