         # Call the constructor if present
         if 'init' of store
             store.init()
+
+        store.waitFor = (otherStore) ->
+
 
         return store
 


module.exports = class SuperFlux
    constructor: (args) ->
        @socket = args.socket

        @actions = {}
        @stores = {}
        @callbacks = {}

    createStore: (store) ->
        store.notify = m.redraw


                    url: options.url
                    data: options.data
                    background: true
                    config: (xhr) ->
                        xhr.setRequestHeader('Content-Type', 'application/json')
                        if requestAuthHeaderKey? and requestAuthHeaderValue?
                            xhr.setRequestHeader(
                                requestAuthHeaderKey
                                requestAuthHeaderValue
                            )
                .then(successFn, failureFn)

        return @actions
