New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

headroom.js

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

headroom.js - npm Package Compare versions

Comparing version 0.9.1 to 0.9.3

18

dist/angular.headroom.js
/*!
* headroom.js v0.9.1 - Give your page some headroom. Hide your header until you need it
* headroom.js v0.9.3 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2016 Nick Williams - http://wicky.nillia.ms/headroom.js

@@ -13,3 +13,3 @@ * License: MIT

function headroom($document, HeadroomService) {
function headroom(HeadroomService) {
return {

@@ -22,13 +22,15 @@ scope: {

},
link: function link($scope, $element) {
link: function ($scope, $element) {
var options = {};
var opts = HeadroomService.options;
if (options.scroller) {
options.scroller = $document.querySelector(options.scroller);
}
for (var prop in opts) {
options[prop] = $scope[prop] || opts[prop];
}
if ($scope.scroller) {
options.scroller = document.querySelector($scope.scroller);
}
var headroom = new HeadroomService($element[0], options).init();
$scope.$on('$destroy', headroom.destroy);
$scope.$on('$destroy', function(){
headroom.destroy();
});
}

@@ -38,3 +40,3 @@ };

headroom.$inject = ['$document', 'HeadroomService'];
headroom.$inject = ['HeadroomService'];

@@ -41,0 +43,0 @@ function HeadroomService() {

/*!
* headroom.js v0.9.1 - Give your page some headroom. Hide your header until you need it
* headroom.js v0.9.3 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2016 Nick Williams - http://wicky.nillia.ms/headroom.js

@@ -7,2 +7,2 @@ * License: MIT

!function(a,b){function c(a,b){return{scope:{tolerance:"=",offset:"=",classes:"=",scroller:"@"},link:function(c,d){var e={},f=b.options;e.scroller&&(e.scroller=a.querySelector(e.scroller));for(var g in f)e[g]=c[g]||f[g];var h=new b(d[0],e).init();c.$on("$destroy",h.destroy)}}}function d(){return b}a&&(c.$inject=["$document","HeadroomService"],a.module("headroom",[]).directive("headroom",c).factory("HeadroomService",d))}(window.angular,window.Headroom);
!function(a,b){function c(a){return{scope:{tolerance:"=",offset:"=",classes:"=",scroller:"@"},link:function(b,c){var d={},e=a.options;for(var f in e)d[f]=b[f]||e[f];b.scroller&&(d.scroller=document.querySelector(b.scroller));var g=new a(c[0],d).init();b.$on("$destroy",function(){g.destroy()})}}}function d(){return b}a&&(c.$inject=["HeadroomService"],a.module("headroom",[]).directive("headroom",c).factory("HeadroomService",d))}(window.angular,window.Headroom);
/*!
* headroom.js v0.9.1 - Give your page some headroom. Hide your header until you need it
* headroom.js v0.9.3 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2016 Nick Williams - http://wicky.nillia.ms/headroom.js

@@ -4,0 +4,0 @@ * License: MIT

/*!
* headroom.js v0.9.1 - Give your page some headroom. Hide your header until you need it
* headroom.js v0.9.3 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2016 Nick Williams - http://wicky.nillia.ms/headroom.js

@@ -4,0 +4,0 @@ * License: MIT

/*!
* headroom.js v0.9.1 - Give your page some headroom. Hide your header until you need it
* headroom.js v0.9.3 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2016 Nick Williams - http://wicky.nillia.ms/headroom.js

@@ -4,0 +4,0 @@ * License: MIT

/*!
* headroom.js v0.9.1 - Give your page some headroom. Hide your header until you need it
* headroom.js v0.9.3 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2016 Nick Williams - http://wicky.nillia.ms/headroom.js

@@ -4,0 +4,0 @@ * License: MIT

{
"name": "headroom.js",
"version": "0.9.1",
"version": "0.9.3",
"description": "Give your page some headroom. Hide your header until you need it",

@@ -5,0 +5,0 @@ "main": "dist/headroom.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc