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

                    url: options.url
                    data: options.data
                    background: true
                .then(successFn, failureFn)

        return @actions


module.exports = class SuperFlux
    constructor: (args) ->
        @socket = args.socket or ->
        @requestAuthHeaderKey = args.requestAuthHeaderKey or null
        @requestAuthHeaderValue = args.requestAuthHeaderValue or null

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

    setAuthHeader: (key, value) ->
        @requestAuthHeaderKey = key
        @requestAuthHeaderValue = value
    createStore: (store) ->
        store.notify = m.redraw

