Exposed JS G5.$ and G5.ready globals on frontend (ref, #1256)

This commit is contained in:
Djamil Legato
2016-04-26 17:34:10 -07:00
parent db36556dde
commit 615b029ba1
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@
1. [Common](#common) 1. [Common](#common)
1. [](#new) 1. [](#new)
- Hydrogen: The template now includes the emoji fonts (thanks @810 - #1253) - Hydrogen: The template now includes the emoji fonts (thanks @810 - #1253)
- Frontend: Exposed `G5.$` and `G5.ready` JavaScript utils (ref, #1256)
2. [](#improved) 2. [](#improved)
- Extended top level menus with a fixed width are now respecting the directional setting (#1252) - 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) - 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)
+3 -1
View File
@@ -11,7 +11,9 @@ var ready = require('domready'),
ready(function() { ready(function() {
instances = { instances = {
offcanvas: new offcanvas(), offcanvas: new offcanvas(),
menu: new menu() menu: new menu(),
$: $,
ready: ready
}; };
module.exports = window.G5 = instances; module.exports = window.G5 = instances;
+3 -1
View File
@@ -12,7 +12,9 @@ var ready = require('domready'),
ready(function() { ready(function() {
instances = { instances = {
offcanvas: new offcanvas(), offcanvas: new offcanvas(),
menu: new menu() menu: new menu(),
$: $,
ready: ready
}; };
module.exports = window.G5 = instances; module.exports = window.G5 = instances;