Created
October 28, 2015 20:04
-
-
Save hoorayimhelping/30139922fa67aea85749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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