Change variable name to consistent `$tbody`

This commit is contained in:
George Stephanis 2015-08-07 11:41:59 -04:00
parent 64f48f8706
commit b0a485a5e6
1 changed files with 3 additions and 3 deletions

View File

@ -4,12 +4,12 @@
(function($, data, wp){
var rowTemplate = wp.template( 'wc-tax-table-row' ),
$ratesTbody = $('#rates');
$tbody = $('#rates');
$(function() {
$ratesTbody.innerHTML = '';
$tbody.innerHTML = '';
$.each( data.rates, function ( id, rowData ) {
$ratesTbody.append( rowTemplate( rowData ) );
$tbody.append( rowTemplate( rowData ) );
} );
});
})(jQuery, htmlSettingsTaxLocalizeScript, wp);