]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixed error with settings declaration 5709/head
authorJoe Workman <joe@workmanmail.com>
Fri, 29 Aug 2014 07:24:28 +0000 (00:24 -0700)
committerJoe Workman <joe@workmanmail.com>
Fri, 29 Aug 2014 07:24:28 +0000 (00:24 -0700)
js/foundation/foundation.dropdown.js

index 3814d2268768d97ffbd59467df520d98da64e396..09cbe3bf1385e52ac43cb2b0465ebbb6914fa784 100644 (file)
           if (settings.is_hover) self.open.apply(self, [dropdown, target]);
         })
         .on('mouseleave.fndtn.dropdown', '[' + this.attr_name() + '], [' + this.attr_name() + '-content]', function (e) {
-          var $this = S(this), setting;
+          var $this = S(this);
           self.timeout = setTimeout(function () {
             if ($this.data(self.data_attr())) {
-              settings = $this.data(self.data_attr(true) + '-init') || self.settings;
+              var settings = $this.data(self.data_attr(true) + '-init') || self.settings;
               if (settings.is_hover) self.close.call(self, S('#' + $this.data(self.data_attr())));
             } else {
-              var target   = S('[' + self.attr_name() + '="' + S(this).attr('id') + '"]');
-              settings = target.data(self.attr_name(true) + '-init') || self.settings;
+              var target   = S('[' + self.attr_name() + '="' + S(this).attr('id') + '"]'),
+                  settings = target.data(self.attr_name(true) + '-init') || self.settings;
               if (settings.is_hover) self.close.call(self, $this);
             }
           }.bind(this), 150);