]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
s.no_pip vs. self.settings.no_pip 8632/head
authorKristofer Krause <kris.krause@gmail.com>
Tue, 19 Apr 2016 18:53:49 +0000 (14:53 -0400)
committerKristofer Krause <kris.krause@gmail.com>
Tue, 19 Apr 2016 18:53:49 +0000 (14:53 -0400)
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

index ae16c2d1eaa30789d318436337458a5812efe1d7..8779baaa99425773120c78ad2f378cc869d4a80d 100644 (file)
           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);
         }
 
           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);
         }