{"size": 1569, "ext": "js", "max_stars_repo_path": "node_modules/gnap-theme-gnap-angular/js/angular/docs/js/angular-bootstrap/dropdown-toggle.min.js", "max_stars_repo_name": "infrabel/docs-gnap", "max_stars_repo_stars_event_min_datetime": "2016-03-15T15:27:58.000Z", "max_stars_repo_stars_event_max_datetime": "2016-03-15T15:27:58.000Z", "max_issues_repo_path": "node_modules/gnap-theme-gnap-angular/js/angular/docs/js/angular-bootstrap/dropdown-toggle.min.js", "max_issues_repo_name": "infrabel/docs-gnap", "max_issues_repo_issues_event_min_datetime": "2015-01-02T16:43:23.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-24T08:27:12.000Z", "max_forks_repo_path": "node_modules/gnap-theme-gnap-angular/js/angular/docs/js/angular-bootstrap/dropdown-toggle.min.js", "max_forks_repo_name": "infrabel/docs-gnap", "max_forks_repo_forks_event_min_datetime": "2015-01-05T08:46:04.000Z", "max_forks_repo_forks_event_max_datetime": "2015-07-12T20:34:54.000Z"}
{"max_stars_count": 1, "max_issues_count": 17, "max_forks_count": 4, "avg_line_length": 784.5, "max_line_length": 1472, "alphanum_fraction": 0.6959847036}
angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(a){var b=null;this.open=function(e){b||(a.bind("click",c),a.bind("keydown",d)),b&&b!==e&&(b.isOpen=!1),b=e},this.close=function(e){b===e&&(b=null,a.unbind("click",c),a.unbind("keydown",d))};var c=function(){b.$apply(function(){b.isOpen=!1})},d=function(a){27===a.which&&c()}}]).controller("DropdownController",["$scope","$attrs","dropdownConfig","dropdownService","$animate",function(a,b,c,d,e){var f=this,g=c.openClass;this.init=function(c){f.$element=c,a.isOpen=angular.isDefined(b.isOpen)?a.$parent.$eval(b.isOpen):!1},this.toggle=function(b){return a.isOpen=arguments.length?!!b:!a.isOpen},this.isOpen=function(){return a.isOpen},a.$watch("isOpen",function(b){e[b?"addClass":"removeClass"](f.$element,g),b?d.open(a):d.close(a),a.onToggle({open:!!b})}),a.$on("$locationChangeSuccess",function(){a.isOpen=!1})}]).directive("dropdown",function(){return{restrict:"CA",controller:"DropdownController",scope:{isOpen:"=?",onToggle:"&"},link:function(a,b,c,d){d.init(b)}}}).directive("dropdownToggle",function(){return{restrict:"CA",require:"?^dropdown",link:function(a,b,c,d){d&&(b.bind("click",function(c){c.preventDefault(),c.stopPropagation(),b.hasClass("disabled")||b.prop("disabled")||a.$apply(function(){d.toggle()})}),b.attr({"aria-haspopup":!0,"aria-expanded":!1}),a.$watch(d.isOpen,function(a){b.attr("aria-expanded",!!a)}))}}});
//# sourceMappingURL=..\..\..\..\debug\angular\docs\js\angular-bootstrap\dropdown-toggle.min.map