Skip to content

Instantly share code, notes, and snippets.

@hoorayimhelping
Created October 28, 2015 20:04
Show Gist options
  • Save hoorayimhelping/30139922fa67aea85749 to your computer and use it in GitHub Desktop.
Save hoorayimhelping/30139922fa67aea85749 to your computer and use it in GitHub Desktop.
diff --git a/modules/src/fluxwrap.js b/modules/src/fluxwrap.js
index 2b6b6d5..30c82b0 100644
--- a/modules/src/fluxwrap.js
+++ b/modules/src/fluxwrap.js
@@ -65,7 +65,10 @@ class DataStore extends EventEmitter
init(Dispatcher, initialStore, callbacks){
this._id = Dispatcher.register(this.getCallback());
- if(callbacks) this.bind(callbacks);
+ if (callbacks) {
+ this.bind(callbacks);
+ }
+
this.setStore(initialStore);
}
}
@@ -79,4 +82,4 @@ class FluxWrap extends flux.Dispatcher
}
}
-export default FluxWrap;
\ No newline at end of file
+export default FluxWrap;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment