argon/storage/local.js
function find(requestObj, callback) {
            var found, storedData, property;

            var storage = this;
            
            callback = callback || function defaultGetCallback() {
                //nothing here maybe put error notification
            };
            
			for (i = 0; i < storage.preprocessors.length; i++) {
                requestObj.data = storage.preprocessors[i](requestObj.data, requestObj);
            }

            if ((typeof requestObj) === 'undefined' || requestObj === null) {
               callback(null);
               return this;
            }
            
            found      = [];
            storedData = this.storage;

            Object.keys(storedData).forEach(function (property) {
                found.push(storedData[property]);
            });

            var data = found; 
            
            for (i = 0; i < storage.processors.length; i++) {
                data = storage.processors[i](data, requestObj);
            }
            callback(data);
            
            return this;
        }
function find(requestObj, callback) {
            var found, storedData, property;

            var storage = this;
            
            callback = callback || function defaultGetCallback() {
                //nothing here maybe put error notification
            };
            
			for (i = 0; i < storage.preprocessors.length; i++) {
                requestObj.data = storage.preprocessors[i](requestObj.data, requestObj);
            }

            if ((typeof requestObj) === 'undefined' || requestObj === null) {
               callback(null);
               return this;
            }
            
            found      = [];
            storedData = this.storage;

            Object.keys(storedData).forEach(function (property) {
                found.push(storedData[property]);
            });

            var data = found; 
            
            for (i = 0; i < storage.processors.length; i++) {
                data = storage.processors[i](data, requestObj);
            }
            callback(data);
            
            return this;
        }
function find ( requestObj , callback ) { var found , storedData , property ; var storage = this ; callback = callback || function defaultGetCallback ( ) { //nothing here maybe put error notification } ; for ( i = 0 ; i < storage . preprocessors . length ; i ++ ) { requestObj . data = storage . preprocessors [ i ] ( requestObj . data , requestObj ) ; } if ( ( typeof requestObj ) === 'undefined' || requestObj === null ) { callback ( null ) ; return this ; } found = [ ] ; storedData = this . storage ; Object . keys ( storedData ) . forEach ( function ( property ) { found . push ( storedData [ property ] ) ; } ) ; var data = found ; for ( i = 0 ; i < storage . processors . length ; i ++ ) { data = storage . processors [ i ] ( data , requestObj ) ; } callback ( data ) ; return this ; }
Retrieves a set of data on the storage instance
@method get <public>
@argument query <required> [Object] the query to the elements that must be updated
@argument callback [Function] The function that will be executed when the process ends
@return [Array]
Retrieves a set of data on the storage instance