]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
no_pip data-options bug fix 8382/head
authorKristofer Krause <kris.krause@gmail.com>
Thu, 10 Mar 2016 14:41:22 +0000 (09:41 -0500)
committerKristofer Krause <kris.krause@gmail.com>
Thu, 10 Mar 2016 14:41:22 +0000 (09:41 -0500)
This is related to the dropdown performance enhancement.

js/foundation/foundation.dropdown.js

index 8c3c100efb86d882220fa17067591f22a36414c0..55d1e46dcae724082abd6fc5e2c07d1e8b998560 100644 (file)
           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);
         }
 
           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);
         }
 
 
         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);
         }