nl_tokens: ............... . DESTRUCTION . ............... When a record is destroyed this un - indexes it and removes it from any record arrays so it can be GCed .
pl_tokens: function ( record ) { var type = record . constructor , typeMap = this . typeMapFor ( type ) , id = <mask> ( record , 'id' ) ; record . updateRecordArrays ( ) ; if ( id ) { delete typeMap . idToRecord [ id ] ; } var loc = indexOf ( typeMap . records , record ) ; typeMap . records . splice ( loc , 1 ) ; }