www/store-ios.js
// A promise function calls the callback or registers it
A promise function calls the callback or registers it
A promise function calls the callback or registers it
function genPromise(eventName) {
        return function(cb) {
            if (events[eventName])
                cb();
            else
                callbacks[eventName].push(cb);
            return this;
        };
    }
function genPromise ( eventName ) { return function ( cb ) { if ( events [ eventName ] ) cb ( ) ; else callbacks [ eventName ] . push ( cb ) ; return this ; } ; }
A promise function calls the callback or registers it
A promise function calls the callback or registers it