vendor/assets/javascripts/uikit/core/scrollspy.js in uikit2-rails-0.1.2 vs vendor/assets/javascripts/uikit/core/scrollspy.js in uikit2-rails-0.1.3
- old
+ new
@@ -1,6 +1,6 @@
-/*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
+/*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(UI) {
"use strict";
var $win = UI.$win,
@@ -146,10 +146,10 @@
},
init: function() {
var ids = [],
- links = this.find("a[href^='#']").each(function(){ ids.push(UI.$(this).attr("href")); }),
+ links = this.find("a[href^='#']").each(function(){ if(this.getAttribute("href").trim()!=='#') ids.push(this.getAttribute("href")); }),
targets = UI.$(ids.join(",")),
clsActive = this.options.cls,
clsClosest = this.options.closest || this.options.closest;