mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Remove reference to global 'this' from listEntry
Also removes setting of the `$` variable to jQuery. This can mess up the unit tests if they run against JSDOM, which doesn't set the global `this` to `window`, as browsers do. We don't set `$` in any other module scripts and adding it to `this` without making explicit that `this` means `window` isn't useful.
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
(function (Modules) {
|
(function (Modules) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var root = this,
|
|
||||||
$ = this.jQuery;
|
|
||||||
|
|
||||||
var lists = [],
|
var lists = [],
|
||||||
listEntry,
|
listEntry,
|
||||||
ListEntry;
|
ListEntry;
|
||||||
|
|||||||
Reference in New Issue
Block a user