nl_tokens: Function : selectDOMElement Tries to select a DOM element for this <View > using the passed DOM manipulator that confirms to the jQuery API ( http : // api . jquery . com / ) .
pl_tokens: function selectDOMElement ( $ ) { debug ( 'select dom element `%s`' , this . toString ( ) ) ; var domElement ; if ( ! this . <mask> ) { var attrs = _ . extend ( { } , _ . result ( this , 'attributes' ) ) ; if ( this . id ) { attrs . id = _ . result ( this , 'id' ) ; } if ( this . className ) { attrs [ 'class' ] = _ . result ( this , 'className' ) ; } var selector = '<' + _ . result ( this , 'tagName' ) + '>' ; domElement = $ ( selector ) . attr ( attrs ) ; } else { domElement = $ ( _ . result ( this , 'el' ) ) ; } return domElement ; }