Do not detach Mutation event if the mobileContainer doesn't exist, there might be other particles rendered (fixes #172)

This commit is contained in:
Djamil Legato
2015-05-02 08:47:25 -07:00
parent 050c8a6ae1
commit d9be78e982
2 changed files with 0 additions and 12 deletions
@@ -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(); }