]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
add missing radix
authorKristofer Krause <kris.krause@gmail.com>
Sat, 18 Feb 2017 00:19:27 +0000 (19:19 -0500)
committerKristofer Krause <kris.krause@gmail.com>
Sat, 18 Feb 2017 00:19:27 +0000 (19:19 -0500)
just being cautious.  surprised the linter did not pick this up

js/foundation.drilldown.js

index 8a56cf4ede9c10105048e7404612d7b18f53e8a9..6c0af8b6589ba9b8927913dcddd5d58a1a38a8c8 100644 (file)
@@ -103,7 +103,7 @@ class Drilldown {
     if(!this.options.autoHeight) {
       this.$submenus.addClass('drilldown-submenu-cover-previous');
     }
-    
+
     // create a wrapper on element if it doesn't exist.
     if(!this.$element.parent().hasClass('is-drilldown')){
       this.$wrapper = $(this.options.wrapper).addClass('is-drilldown');
@@ -175,7 +175,7 @@ class Drilldown {
   _scrollTop() {
     var _this = this;
     var $scrollTopElement = _this.options.scrollTopElement!=''?$(_this.options.scrollTopElement):_this.$element,
-        scrollPos = parseInt($scrollTopElement.offset().top+_this.options.scrollTopOffset);
+        scrollPos = parseInt($scrollTopElement.offset().top+_this.options.scrollTopOffset, 10);
     $('html, body').stop(true).animate({ scrollTop: scrollPos }, _this.options.animationDuration, _this.options.animationEasing,function(){
       /**
         * Fires after the menu has scrolled