Merge pull request #351 from m4tx/patch-1

Don't use window variable when instantiating Collator
pull/207/merge
Allan Jardine 7 years ago committed by GitHub
commit 8bb5cec11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,7 +71,7 @@
$.fn.dataTable.ext.order.intl = function ( locales, options ) { $.fn.dataTable.ext.order.intl = function ( locales, options ) {
if ( window.Intl ) { if ( window.Intl ) {
var collator = new window.Intl.Collator( locales, options ); var collator = new Intl.Collator( locales, options );
var types = $.fn.dataTable.ext.type; var types = $.fn.dataTable.ext.type;
delete types.order['string-pre']; delete types.order['string-pre'];

Loading…
Cancel
Save