Don't use window variable when instantiating Collator

This fixes #350
pull/351/head
Mateusz Maćkowski 7 years ago committed by GitHub
parent 1df2f6c529
commit 284ebf1251
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 ) {
if ( window.Intl ) {
var collator = new window.Intl.Collator( locales, options );
var collator = new Intl.Collator( locales, options );
var types = $.fn.dataTable.ext.type;
delete types.order['string-pre'];

Loading…
Cancel
Save