From 7ea078b9c923a60fe6ca2be55705ee36c41fde1f Mon Sep 17 00:00:00 2001 From: Kristofer Krause Date: Tue, 19 Apr 2016 14:53:49 -0400 Subject: [PATCH] s.no_pip vs. self.settings.no_pip We would like this change in our project. However, !s.no_pip was accidentally over written. In both top: and bottom: is should be !s.no_pip and not !self.settings.no_pip. --- js/foundation/foundation.dropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/foundation/foundation.dropdown.js b/js/foundation/foundation.dropdown.js index ae16c2d1e..8779baaa9 100644 --- a/js/foundation/foundation.dropdown.js +++ b/js/foundation/foundation.dropdown.js @@ -331,7 +331,7 @@ p.left = p.left - thisOuterWidth + tOuterWidth; } - if (!self.settings.no_pip && tOuterWidth < thisOuterWidth || self.small() || this.hasClass(s.mega_menu)) { + if (!s.no_pip && tOuterWidth < thisOuterWidth || self.small() || this.hasClass(s.mega_menu)) { self.adjust_pip(this, t, s, p); } @@ -354,7 +354,7 @@ p.left = p.left - thisOuterWidth + tOuterWidth; } - if (!self.settings.no_pip && tOuterWidth < thisOuterWidth || self.small() || this.hasClass(s.mega_menu)) { + if (!s.no_pip && tOuterWidth < thisOuterWidth || self.small() || this.hasClass(s.mega_menu)) { self.adjust_pip(this, t, s, p); } -- 2.47.2