Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jan 19, 2011
1 parent 4861323 commit 039c785
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/visual/grid/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@
.delegate( "tbody > tr", "click", function() {
datastore.select( $(this).tmplItem().data );
});
details = $( "#developer" );

initializeTable( summaryTable );
var tbody = summaryTable.find( "tbody" );
$.each( datastore.items( 0, 5 ), function( itemId, item ) {
$( "#row-tmpl" ).tmpl( item ).appendTo( tbody );
});

function initializeTable( table ) {
var tbody = table.find( "tbody" );
$.each( datastore.items( 0, 5 ), function( itemId, item ) {
$( "#row-tmpl" ).tmpl( item ).appendTo( tbody );
});
}
});
</script>
</head>
Expand Down

0 comments on commit 039c785

Please sign in to comment.