mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Exposed JS G5.$ and G5.ready globals on frontend (ref, #1256)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
1. [Common](#common)
|
||||
1. [](#new)
|
||||
- Hydrogen: The template now includes the emoji fonts (thanks @810 - #1253)
|
||||
- Frontend: Exposed `G5.$` and `G5.ready` JavaScript utils (ref, #1256)
|
||||
2. [](#improved)
|
||||
- Extended top level menus with a fixed width are now respecting the directional setting (#1252)
|
||||
- Menu Manager: Cog wheel settings for Menu Items as well as Columns sorting icons, will now always appear on Touch Devices instead of been hover controlled only (related to #1254 and #1218)
|
||||
|
||||
@@ -11,7 +11,9 @@ var ready = require('domready'),
|
||||
ready(function() {
|
||||
instances = {
|
||||
offcanvas: new offcanvas(),
|
||||
menu: new menu()
|
||||
menu: new menu(),
|
||||
$: $,
|
||||
ready: ready
|
||||
};
|
||||
|
||||
module.exports = window.G5 = instances;
|
||||
|
||||
Vendored
+3
-1
@@ -12,7 +12,9 @@ var ready = require('domready'),
|
||||
ready(function() {
|
||||
instances = {
|
||||
offcanvas: new offcanvas(),
|
||||
menu: new menu()
|
||||
menu: new menu(),
|
||||
$: $,
|
||||
ready: ready
|
||||
};
|
||||
|
||||
module.exports = window.G5 = instances;
|
||||
|
||||
Reference in New Issue
Block a user