jellyfin-web/dashboard-ui/bower_components/headroomjs/dist/angular.headroom.js
Luke Pulverenti 8a6884abef minify
2017-01-27 18:07:14 -05:00

1 line
524 B
JavaScript

!function(angular){angular&&angular.module("headroom",[]).directive("headroom",function(){return{restrict:"EA",scope:{tolerance:"=",offset:"=",classes:"=",scroller:"@"},link:function(scope,element){var options={};angular.forEach(Headroom.options,function(value,key){options[key]=scope[key]||Headroom.options[key]}),options.scroller&&(options.scroller=angular.element(options.scroller)[0]);var headroom=new Headroom(element[0],options);headroom.init(),scope.$on("destroy",function(){headroom.destroy()})}}})}(window.angular);