From 43a639d01af191191e8a0d223a8fc5ffc6afc9f9 Mon Sep 17 00:00:00 2001 From: Kristofer Krause Date: Thu, 10 Mar 2016 09:41:22 -0500 Subject: [PATCH] no_pip data-options bug fix This is related to the dropdown performance enhancement. --- js/foundation/foundation.dropdown.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/foundation/foundation.dropdown.js b/js/foundation/foundation.dropdown.js index 8c3c100ef..55d1e46dc 100644 --- a/js/foundation/foundation.dropdown.js +++ b/js/foundation/foundation.dropdown.js @@ -329,7 +329,7 @@ p.left = p.left - this.outerWidth() + t.outerWidth(); } - if (!self.settings.no_pip && t.outerWidth() < this.outerWidth() || self.small() || this.hasClass(s.mega_menu)) { + if (!s.no_pip && t.outerWidth() < this.outerWidth() || self.small() || this.hasClass(s.mega_menu)) { self.adjust_pip(this, t, s, p); } @@ -349,7 +349,7 @@ p.left = p.left - this.outerWidth() + t.outerWidth(); } - if (!self.settings.no_pip && t.outerWidth() < this.outerWidth() || self.small() || this.hasClass(s.mega_menu)) { + if (!s.no_pip && t.outerWidth() < this.outerWidth() || self.small() || this.hasClass(s.mega_menu)) { self.adjust_pip(this, t, s, p); } @@ -389,7 +389,7 @@ var self = Foundation.libs.dropdown; - if (!self.settings.no_pip && t.outerWidth() < this.outerWidth() || self.small() || this.hasClass(s.mega_menu)) { + if (!s.no_pip && t.outerWidth() < this.outerWidth() || self.small() || this.hasClass(s.mega_menu)) { self.adjust_pip(this, t, s, p); } -- 2.47.2