nl_tokens: Get data for template . This also acts as a view - model . Try to return proper data if model or collection is available .
pl_tokens: function ( ) { var retVal , parsedOptions ; if ( this . model ) { retVal = this . model . toJSON ( ) ; } else if ( this . collection ) { retVal = { <mask> : this . collection . toJSON ( ) , meta : this . collection . meta , params : this . collection . params } ; } // Remove options that are duplicates in the templates parsedOptions = _ . omit ( this . options , [ 'model' , 'collection' , 'app' ] ) ; return _ . extend ( { } , retVal , parsedOptions ) ; }