Restructuring of scripts for better use of ES6 concepts
- Optimized use of common properties (, , ...) - Dispatching events in an attempt to de-globalize certain variables used in the past - Attempt to organize files in a more logical manner
This commit is contained in:
6
assets/scripts/utils/environment.js
Normal file
6
assets/scripts/utils/environment.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const $document = $(document);
|
||||
const $window = $(window);
|
||||
const $html = $(document.documentElement);
|
||||
const $body = $(document.body);
|
||||
|
||||
export { $document, $window, $html, $body };
|
||||
Reference in New Issue
Block a user