/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ YUI.add('recordset-indexer',function(Y){function RecordsetIndexer(config){RecordsetIndexer.superclass.constructor.apply(this,arguments);} Y.mix(RecordsetIndexer,{NS:"indexer",NAME:"recordsetIndexer",ATTRS:{hashTables:{value:{}},keys:{value:{}}}});Y.extend(RecordsetIndexer,Y.Plugin.Base,{initializer:function(config){var host=this.get('host');this.onHostEvent('add',Y.bind("_defAddHash",this),host);this.onHostEvent('remove',Y.bind('_defRemoveHash',this),host);this.onHostEvent('update',Y.bind('_defUpdateHash',this),host);},destructor:function(config){},_setHashTable:function(key){var host=this.get('host'),obj={},i=0,len=host.getLength();for(;i