static/ext/src/data/proxy/WebStorage.js
function(operation, callback, scope) {
        var me = this,
            records = operation.records,
            ids = me.getIds(),
            idLength = ids.length,
            newIds = [],
            removedHash = {},
            i = records.length,
            id;

        operation.setStarted();

        for (; i--;) {
            Ext.apply(removedHash, me.removeRecord(records[i]));
        }

        for(i = 0; i < idLength; i++) {
            id = ids[i];
            if(!removedHash[id]) {
                newIds.push(id);
            }
        }

        me.setIds(newIds);

        operation.setCompleted();
        operation.setSuccessful();

        if (typeof callback == 'function') {
            callback.call(scope || me, operation);
        }
    }
function(operation, callback, scope) {
        var me = this,
            records = operation.records,
            ids = me.getIds(),
            idLength = ids.length,
            newIds = [],
            removedHash = {},
            i = records.length,
            id;

        operation.setStarted();

        for (; i--;) {
            Ext.apply(removedHash, me.removeRecord(records[i]));
        }

        for(i = 0; i < idLength; i++) {
            id = ids[i];
            if(!removedHash[id]) {
                newIds.push(id);
            }
        }

        me.setIds(newIds);

        operation.setCompleted();
        operation.setSuccessful();

        if (typeof callback == 'function') {
            callback.call(scope || me, operation);
        }
    }
function ( operation , callback , scope ) { var me = this , records = operation . records , ids = me . getIds ( ) , idLength = ids . length , newIds = [ ] , removedHash = { } , i = records . length , id ; operation . setStarted ( ) ; for ( ; i -- ; ) { Ext . apply ( removedHash , me . removeRecord ( records [ i ] ) ) ; } for ( i = 0 ; i < idLength ; i ++ ) { id = ids [ i ] ; if ( ! removedHash [ id ] ) { newIds . push ( id ) ; } } me . setIds ( newIds ) ; operation . setCompleted ( ) ; operation . setSuccessful ( ) ; if ( typeof callback == 'function' ) { callback . call ( scope || me , operation ) ; } }
inherit
inherit