@@ -539,28 +539,7 @@ <h3><i class="glyphicon glyphicon-cloud-download"></i> Export <span class="
539539< script >
540540
541541 $ ( document ) . ready ( function ( ) {
542- var itemHtml = function ( m ) {
543- return '<p><strong>' + m . name + '</strong>: ' + m . description + '</p>' ;
544- } ,
545- viewsHtml = function ( selector , namespace , opts ) { //<a name="one" class="evo-anchor"> </a>
546- var h = '<a name="' + selector + '-api" class="evo-anchor"> </a><h3>API for "' + selector + '" <span class="view-fullname">' + namespace + '</span></h3>' ;
547- opts . type = 'option' ;
548- h += '<a name="' + selector + '-api-options" class="evo-anchor"> </a><h4><i class="glyphicon glyphicon-list-alt"></i> Options</h4>' ;
549- h += _ . map ( _ . where ( EvoDoc , opts ) , itemHtml ) . join ( '' ) ;
550- opts . type = 'method' ;
551- h += '<br><a name="' + selector + '-api-methods" class="evo-anchor"> </a><h4><i class="glyphicon glyphicon-console"></i> Methods</h4>' ;
552- h += _ . map ( _ . where ( EvoDoc , opts ) , itemHtml ) . join ( '' ) ;
553- opts . type = 'event' ;
554- h += '<br><a name="' + selector + '-api-events" class="evo-anchor"> </a><h4><i class="glyphicon glyphicon-flash"></i> Events</h4>' ;
555- h += _ . map ( _ . where ( EvoDoc , opts ) , itemHtml ) . join ( '' ) ;
556-
557- $ ( '#vw-' + selector ) . append ( h ) ;
558- } ;
559-
560- viewsHtml ( 'one' , 'Evol.ViewOne' , { one :true } ) ;
561- viewsHtml ( 'many' , 'Evol.ViewMany' , { many :true } ) ;
562- viewsHtml ( 'filter' , 'Evol.ViewAction.Filter' , { view :'filter' } ) ;
563- viewsHtml ( 'export' , 'Evol.ViewAction.Export' , { view :'export' } ) ;
542+ enhanceViewDefinitions ( ) ;
564543 } ) ;
565544
566545</ script >
0 commit comments