+
+ newList = [];
+ $.each( response.parse.indicators, function ( i, indicator ) {
+ newList.push(
+ $( '<div>' )
+ .addClass( 'mw-indicator' )
+ .attr( 'id', mw.util.escapeId( 'mw-indicator-' + indicator.name ) )
+ .html( indicator[ '*' ] )
+ .get( 0 ),
+ // Add a whitespace between the <div>s because
+ // they get displayed with display: inline-block
+ document.createTextNode( '\n' )
+ );
+ } );
+ $( '.mw-indicators' ).empty().append( newList );
+