diff --git a/build/angular-intro.min.js b/build/angular-intro.min.js index c0488ca..aaa8d82 100644 --- a/build/angular-intro.min.js +++ b/build/angular-intro.min.js @@ -1,2 +1,2 @@ /*! angular-intro.js 2015-01-28 */ -var ngIntroDirective=angular.module("angular-intro",[]);ngIntroDirective.directive("ngIntroOptions",["$timeout",function(a){return{restrict:"A",scope:{ngIntroMethod:"=",ngIntroOptions:"=",ngIntroOncomplete:"=",ngIntroOnexit:"=",ngIntroOnchange:"=",ngIntroOnbeforechange:"=",ngIntroOnafterchange:"=",ngIntroAutostart:"&",ngIntroAutorefresh:"="},link:function(b){b.ngIntroMethod=function(c){var d,e;e=b.$on("$locationChangeStart",function(){d.exit()}),d="string"==typeof c?introJs(c):introJs(),d.setOptions(b.ngIntroOptions),b.ngIntroAutorefresh&&b.$watch(function(){d.refresh()}),b.ngIntroOncomplete&&d.oncomplete(function(){a(b.ngIntroOncomplete.bind(this,b)),e()}),b.ngIntroOnexit&&d.onexit(function(){a(b.ngIntroOnexit.bind(this,b)),e()}),b.ngIntroOnchange&&d.onchange(function(c){a(b.ngIntroOnchange.bind(this,c,b))}),b.ngIntroOnbeforechange&&d.onbeforechange(function(c){a(b.ngIntroOnbeforechange.bind(this,c,b))}),b.ngIntroOnafterchange&&d.onafterchange(function(c){a(b.ngIntroOnafterchange.bind(this,c,b))}),"number"==typeof c?d.goToStep(c).start():d.start()},b.ngIntroAutostart()&&a(function(){b.ngIntroMethod()})}}}]); \ No newline at end of file +var ngIntroDirective=angular.module("angular-intro",[]);ngIntroDirective.directive("ngIntroOptions",["$timeout",function(a){return{restrict:"A",scope:{ngIntroMethod:"=",ngIntroOptions:"=",ngIntroOncomplete:"=",ngIntroOnexit:"=",ngIntroOnchange:"=",ngIntroOnbeforechange:"=",ngIntroOnafterchange:"=",ngIntroAutostart:"&",ngIntroAutorefresh:"="},link:function(b){b.ngIntroMethod=function(c){var d,e=b.$on("$locationChangeStart",function(){d.exit()});d="string"==typeof c?introJs(c):introJs(),d.setOptions(b.ngIntroOptions),b.ngIntroAutorefresh&&b.$watch(function(){d.refresh()}),b.ngIntroOncomplete&&d.oncomplete(function(){a(b.ngIntroOncomplete.bind(this,b)),e()}),b.ngIntroOnexit&&d.onexit(function(){a(b.ngIntroOnexit.bind(this,b)),e()}),b.ngIntroOnchange&&d.onchange(function(c){a(b.ngIntroOnchange.bind(this,c,b))}),b.ngIntroOnbeforechange&&d.onbeforechange(function(c){a(b.ngIntroOnbeforechange.bind(this,c,b))}),b.ngIntroOnafterchange&&d.onafterchange(function(c){a(b.ngIntroOnafterchange.bind(this,c,b))}),"number"==typeof c?d.goToStep(c).start():d.start()},b.ngIntroAutostart()&&a(function(){b.ngIntroMethod()})}}}]);