nl_tokens: Build a brand new record for a given type ID and initial data .
pl_tokens: function ( type , id , data ) { var typeMap = this . typeMapFor ( <mask> ) , idToRecord = typeMap . idToRecord ; Ember . assert ( 'The id ' + id + ' has already been used with another record of type ' + type . toString ( ) + '.' , ! id || ! idToRecord [ id ] ) ; // lookupFactory should really return an object that creates // instances with the injections applied var record = type . _create ( { id : id , store : this , container : this . container } ) ; if ( data ) { record . setupData ( data ) ; } // if we're creating an item, this process will be done // later, once the object has been persisted. if ( id ) { idToRecord [ id ] = record ; } typeMap . records . push ( record ) ; return record ; }