Skip to content

Commit 039c785

Browse files
committed
Code cleanup
1 parent 4861323 commit 039c785

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/visual/grid/data.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,12 @@
7575
.delegate( "tbody > tr", "click", function() {
7676
datastore.select( $(this).tmplItem().data );
7777
});
78-
details = $( "#developer" );
7978

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

82-
function initializeTable( table ) {
83-
var tbody = table.find( "tbody" );
84-
$.each( datastore.items( 0, 5 ), function( itemId, item ) {
85-
$( "#row-tmpl" ).tmpl( item ).appendTo( tbody );
86-
});
87-
}
8884
});
8985
</script>
9086
</head>

0 commit comments

Comments
 (0)