Skip to content

Commit 5b3fc5d

Browse files
committed
remove extra injections of jQuery that are no longer needed
All of the uses of jQuery via window have been removed. The only remaining implicit use is the qtip2 module, which is covered by the injection mechanism.
1 parent d98d06d commit 5b3fc5d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

root/static/js/cpan.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* jshint white: true, lastsemic: true */
22

3+
const $ = require('jquery');
34
const relatizeDate = require('./relatize_date.js');
45
const storage = require('./storage.js');
56
const Mousetrap = require('mousetrap');

root/static/js/inject.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import jQuery from 'jquery';
22

3-
window.$ = jQuery;
4-
window.jQuery = jQuery;
5-
63
export {
7-
jQuery as default,
84
jQuery,
9-
jQuery as $,
105
};

0 commit comments

Comments
 (0)