mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Do not detach Mutation event if the mobileContainer doesn't exist, there might be other particles rendered (fixes #172)
This commit is contained in:
@@ -340,12 +340,6 @@ var Offcanvas = new prime({
|
||||
mobileContainer = $('#g-mobilemenu-container'),
|
||||
blocks;
|
||||
|
||||
// if there is no mobile menu there's no need to check the offcanvas mutation
|
||||
if (!mobileContainer) {
|
||||
this.detachMutationEvent();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!togglers || (mutator && ((mutator.target || mutator.srcElement) !== mobileContainer[0]))) { return; }
|
||||
if (this.opened) { this.close(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user