diff --git a/bower.json b/bower.json index 7afef64..c7d51ff 100755 --- a/bower.json +++ b/bower.json @@ -1,36 +1,36 @@ { - "name": "nz-tour", - "version": "1.0.2", - "description": "Touring and on-boarding made simple for AngularJS", - "main": [ - "dist/nz-tour.min.js", - "dist/nz-tour.min.css" - ], - "license": "MIT", - "ignore": [ - ".jshintrc", - "**/*.txt", - "**/*.html", - "README.md", - "assets", - "**/.*", - "node_modules", - "test", - "tests", - "bower_components" - ], - "dependencies": { - "angular": "~1.2.8" - }, - "homepage": "https://github.com/nozzle/nzTour", - "authors": [ - "tannerlinsley" - ], - "keywords": [ - "tour", - "angular", - "angularjs", - "onboard", - "intro" - ] -} \ No newline at end of file + "name": "nz-tour", + "version": "1.1.0", + "description": "Touring and on-boarding made simple for AngularJS", + "main": [ + "dist/nz-tour.js", + "dist/nz-tour.css" + ], + "license": "MIT", + "ignore": [ + ".jshintrc", + "**/*.txt", + "**/*.html", + "README.md", + "assets", + "**/.*", + "node_modules", + "test", + "tests", + "bower_components" + ], + "dependencies": { + "angular": "^1.2.8" + }, + "homepage": "https://github.com/nozzle/nzTour", + "authors": [ + "tannerlinsley" + ], + "keywords": [ + "tour", + "angular", + "angularjs", + "onboard", + "intro" + ] +} diff --git a/dist/nz-tour.min.js b/dist/nz-tour.min.js index 44f4616..d89b2ea 100644 --- a/dist/nz-tour.min.js +++ b/dist/nz-tour.min.js @@ -1 +1 @@ -!function(){function t(e){return angular.forEach(arguments,function(o){o!==e&&angular.forEach(o,function(o,r){e[r]&&e[r].constructor&&e[r].constructor===Object?t(e[r],o):e[r]=o})}),e}function e(t,e,o,n){t[_removeEventListener](a+e,"wheel"==s?o:r,n||!1)}function o(t,e,o,n){t[i](a+e,"wheel"==s?o:r,n||!1)}function r(t){!t&&(t=window.event);var e={originalEvent:t,target:t.target||t.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==t.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){t.preventDefault?t.preventDefault():t.returnValue=!1}};return"mousewheel"==s?(e.deltaY=-.025*t.wheelDelta,t.wheelDeltaX&&(e.deltaX=-.025*t.wheelDeltaX)):e.deltaY=t.detail,callback(e)}var n=angular.module("nzTour",[]);if(n.factory("nzTour",["$q","$rootScope","$compile","$timeout",function(e,o,r,n){function i(t){return t||e.reject("No Tour Specified!"),t.steps.length||e.reject("No steps were found in that tour!"),T.current?s().then(function(){return u(t)}):u(t)}function s(){return m(0).then(function(){return g(!1)}).then(function(){var t=T.current.tour.config.onClose;return T.current=!1,!t||t()})}function a(){T.current&&x()}function l(){return T.current||T.current.reject(),m(1).then(w).then(function(){return T.current.step++,1}).then(h)}function f(){return m(-1).then(function(){return T.current.step>0?(T.current.step--,-1):e.reject(null)}).then(h)}function c(t){return t>0&&t<=T.current.tour.steps.length?m(0).then(function(){return T.current.step=t-1,0}).then(h):e.reject("Requested step not defined")}function u(o){o.config=t({},T.config,o.config);var r=function(t){if(!angular.isArray(t))return!1;for(var e=0;e