From 5d37cc703b2d3f100ca5c2c73fd456739cd80dd9 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 20 Apr 2020 17:39:15 -0700 Subject: Fixed #31493 -- Replaced var with const and let keywords in JavaScript. The eslint configuration and the admin script compress.py have been updated for ES6. The unused fallback of globals.django in jquery.init.js was removed. It is always included before jsi18n-mocks.test.js and it always sets the global value. --- js_tests/admin/SelectFilter2.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js_tests/admin/SelectFilter2.test.js') diff --git a/js_tests/admin/SelectFilter2.test.js b/js_tests/admin/SelectFilter2.test.js index fd0f309a04..3f85e70fe9 100644 --- a/js_tests/admin/SelectFilter2.test.js +++ b/js_tests/admin/SelectFilter2.test.js @@ -5,7 +5,7 @@ QUnit.module('admin.SelectFilter2'); QUnit.test('init', function(assert) { - var $ = django.jQuery; + const $ = django.jQuery; $('
').appendTo('#qunit-fixture'); $('').appendTo('#id'); SelectFilter.init('id', 'things', 0); -- cgit v1.3