From 6fd63f72243689d3ca776ffd41bb95c94a70ac7d Mon Sep 17 00:00:00 2001 From: Edward Opare-Aryee Date: Tue, 14 Jun 2016 11:24:24 +0100 Subject: [PATCH] Release v0.2.1 --- bower.json | 2 +- dist/angular-smart-nav.js | 2 +- dist/angular-smart-nav.min.js | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bower.json b/bower.json index 1fabe4e..8b9de58 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "angular-smart-nav", "description": "Show or hide a navbar when scrolling in any particular direction and or minimise nav when scrolling pass the navbar", - "version": "0.2.0", + "version": "0.2.1", "homepage": "https://github.com/thisissoon/angular-smart-nav", "license": "MIT", "ignore": [ diff --git a/dist/angular-smart-nav.js b/dist/angular-smart-nav.js index 87d519d..1baf6f8 100644 --- a/dist/angular-smart-nav.js +++ b/dist/angular-smart-nav.js @@ -1,4 +1,4 @@ -/*! angular-smart-nav - v0.2.0 - 2016-06-14 */ +/*! angular-smart-nav - v0.2.1 - 2016-06-14 */ 'use strict'; /** * Module that detects the last scroll direction and diff --git a/dist/angular-smart-nav.min.js b/dist/angular-smart-nav.min.js index 5996f34..c17b782 100644 --- a/dist/angular-smart-nav.min.js +++ b/dist/angular-smart-nav.min.js @@ -1,4 +1,4 @@ -/*! angular-smart-nav - v0.2.0 - 2016-06-14 */ +/*! angular-smart-nav - v0.2.1 - 2016-06-14 */ !function(a){"use strict";angular.module("sn.smartNav",[]).constant("SN_SMART_NAV_CLASSES",{scrollingUp:"sn-nav-scrolling-up",scrollingDown:"sn-nav-scrolling-down",minimise:"sn-nav-minimise",affix:"sn-nav-affix"}).directive("snSmartNav",["$window","$document","SN_SMART_NAV_CLASSES",function(a,b,c){return{restrict:"A",link:function(d,e){var f=0,g=!1,h=function(){var a=b[0].documentElement,c=b[0].body,d=a&&a.scrollTop||c&&c.scrollTop||0;return d},i=h()+e[0].getBoundingClientRect().top,j=function(a){return a>f},k=function(a){return f>a},l=function(a){g&&k(a)?(g=!1,e.removeClass(c.scrollingDown),e.addClass(c.scrollingUp)):!g&&j(a)&&(g=!0,e.removeClass(c.scrollingUp),e.addClass(c.scrollingDown))},m=function(a){a>e[0].offsetHeight?e.addClass(c.minimise):e.removeClass(c.minimise)},n=function(a){a>=i?e.addClass(c.affix):e.removeClass(c.affix)},o=function(){var a=h();l(a),m(a),n(a),f=a},p=function(){angular.element(a).off("scroll",o)};d.$on("$destroy",p),angular.element(a).on("scroll",o),o()}}}])}(window); //# sourceMappingURL=angular-smart-nav.min.js.map \ No newline at end of file diff --git a/package.json b/package.json index d2aae38..4b0de85 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "angular-smart-nav", "private": false, - "version": "0.2.0", + "version": "0.2.1", "description": "Show or hide a navbar when scrolling in any particular direction and or minimise nav when scrolling pass the navbar", "repository": "https://github.com/thisissoon/angular-smart-nav", "license": "MIT",