nl_tokens: @function setModelViewId
pl_tokens: function setModelViewId ( modelViewConstructor ) { // get clone of model view spec definition var modelView = _ . clone ( modelViewConstructor . modelView ) // get function def of constructor modelView . constructor = modelViewConstructor . toString ( ) // get each function def and meta if set if ( typeof modelView . each === 'function' ) { modelView . each = { function : modelView . each . toString ( ) , meta : modelView . each . meta , } } // get post function def and meta if set if ( typeof modelView . post === 'function' ) { modelView . <mask> = { function : modelView . post . toString ( ) , meta : modelView . post . meta , } } // get pre function def and meta if set if ( typeof modelView . pre === 'function' ) { modelView . pre = { function : modelView . pre . toString ( ) , meta : modelView . pre . meta , } } // set id on model view modelViewConstructor . modelView . modelViewId = stableId ( modelView ) }