vendor/assets/javascripts/uikit/core/scrollspy.js in uikit2-rails-0.1.3 vs vendor/assets/javascripts/uikit/core/scrollspy.js in uikit2-rails-0.1.4
- old
+ new
@@ -1,6 +1,6 @@
-/*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
+/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(UI) {
"use strict";
var $win = UI.$win,
@@ -177,10 +177,10 @@
})();
if (!target) return;
if ($this.options.closest) {
- links.closest(clsClosest).removeClass(clsActive);
+ links.blur().closest(clsClosest).removeClass(clsActive);
navitems = links.filter("a[href='#"+target.attr("id")+"']").closest(clsClosest).addClass(clsActive);
} else {
navitems = links.removeClass(clsActive).filter("a[href='#"+target.attr("id")+"']").addClass(clsActive);
}