nl_tokens: @ngdoc function @name name . types : constructor . Name#setNamePart @methodOf name . types : constructor . Name
pl_tokens: function ( name , type , i ) { this . changed = true ; var nameForm = ensureNameForm ( this , i ) ; if ( ! utils . isArray ( nameForm . parts ) ) { nameForm . parts = [ ] ; } var part = utils . find ( nameForm . parts , { type : <mask> } ) ; if ( ! ! name ) { if ( ! part ) { part = { type : type } ; nameForm . parts . push ( part ) ; } part . value = name ; } else if ( ! ! part ) { nameForm . parts . splice ( nameForm . parts . indexOf ( part ) , 1 ) ; } //noinspection JSValidateTypes return this ; }