diff --git a/script/simplePagingGrid-0.6.0.0.js b/script/simplePagingGrid-0.6.0.0.js index 49084f2..51e2d4a 100644 --- a/script/simplePagingGrid-0.6.0.0.js +++ b/script/simplePagingGrid-0.6.0.0.js @@ -665,7 +665,7 @@ td = $(''); } - if (that._compiledCellTemplates !== null && that._compiledCellTemplates[index] !== null && index < that._compiledCellTemplates[index].length && that._compiledCellTemplates[index][rowIndex] !== null) { + if (that._compiledCellTemplates !== null && that._compiledCellTemplates[index] !== null && rowIndex < that._compiledCellTemplates[index].length && that._compiledCellTemplates[index][rowIndex] !== null) { td.html(that._compiledCellTemplates[index][rowIndex](that._sourceData)); } else { var value = rowData[propertyName]; @@ -926,4 +926,4 @@ $.fn[pluginName] = oldSimplePagingGrid; return this } -})(jQuery); \ No newline at end of file +})(jQuery);