1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +01:00

Dev fix: Call number formatter in the correct scope

This commit is contained in:
Allan Jardine 2013-06-19 16:46:22 +01:00
parent 0d8282c61a
commit 3d1d64bc4e

View File

@ -80,9 +80,9 @@ function _fnInfoMacros ( settings, str )
formatter = settings.fnFormatNumber; formatter = settings.fnFormatNumber;
return str. return str.
replace(/_START_/g, formatter( start ) ). replace(/_START_/g, formatter.call( settings, start ) ).
replace(/_END_/g, formatter( settings.fnDisplayEnd() ) ). replace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ).
replace(/_TOTAL_/g, formatter( settings.fnRecordsDisplay() ) ). replace(/_TOTAL_/g, formatter.call( settings, settings.fnRecordsDisplay() ) ).
replace(/_MAX_/g, formatter( settings.fnRecordsTotal() ) ); replace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) );
} }