Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storm-equal-height

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storm-equal-height - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

6

dist/storm-equal-height.js
/**
* @name storm-equal-height: Layout helper to equalise the height of a set of DOM elements
* @version 0.5.0: Mon, 14 Mar 2016 20:49:48 GMT
* @version 0.6.0: Mon, 04 Apr 2016 19:08:39 GMT
* @author stormid

@@ -24,4 +24,4 @@ * @license MIT

this.throttledEqualise = STORM.UTILS.throttle(this.equalise, 60);
global.setTimeout(this.equalise.bind(this), 0);
global.addEventListener('resize', this.throttledEqualise.bind(this), false);
window.setTimeout(this.equalise.bind(this), 0);
window.addEventListener('resize', this.throttledEqualise.bind(this), false);
},

@@ -28,0 +28,0 @@ equalise: function() {

@@ -1,1 +0,1 @@

!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.StormEqualHeight=e()}(this,function(){"use strict";function t(t,e){var o=[].slice.call(document.querySelectorAll(t));if(0===o.length)throw new Error("Equal Height cannot be initialised, no augmentable elements found");return o.forEach(function(t,o){i[o]=STORM.UTILS.assign(Object.create(s),{DOMElements:[].slice.call(t.children),settings:STORM.UTILS.merge({},n,e)}),i[o].init()}),i}function e(e,n){i=[],t(e,n)}var i=[],n={minWidth:768},s={init:function(){this.throttledEqualise=STORM.UTILS.throttle(this.equalise,60),global.setTimeout(this.equalise.bind(this),0),global.addEventListener("resize",this.throttledEqualise.bind(this),!1)},equalise:function(){var t=0;this.DOMElements.forEach(function(e){e.style.height="auto",e.offsetHeight>t&&(t=e.offsetHeight)}),window.innerWidth<this.settings.minWidth||this.DOMElements.forEach(function(e){e.style.height=t+"px"})}};return{init:t,reload:e}});
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.StormEqualHeight=e()}(this,function(){"use strict";function t(t,e){var o=[].slice.call(document.querySelectorAll(t));if(0===o.length)throw new Error("Equal Height cannot be initialised, no augmentable elements found");return o.forEach(function(t,o){i[o]=STORM.UTILS.assign(Object.create(s),{DOMElements:[].slice.call(t.children),settings:STORM.UTILS.merge({},n,e)}),i[o].init()}),i}function e(e,n){i=[],t(e,n)}var i=[],n={minWidth:768},s={init:function(){this.throttledEqualise=STORM.UTILS.throttle(this.equalise,60),window.setTimeout(this.equalise.bind(this),0),window.addEventListener("resize",this.throttledEqualise.bind(this),!1)},equalise:function(){var t=0;this.DOMElements.forEach(function(e){e.style.height="auto",e.offsetHeight>t&&(t=e.offsetHeight)}),window.innerWidth<this.settings.minWidth||this.DOMElements.forEach(function(e){e.style.height=t+"px"})}};return{init:t,reload:e}});
/**
* @name storm-equal-height: Layout helper to equalise the height of a set of DOM elements
* @version 0.5.0: Mon, 14 Mar 2016 20:49:48 GMT
* @version 0.6.0: Mon, 04 Apr 2016 19:08:39 GMT
* @author stormid

@@ -24,4 +24,4 @@ * @license MIT

this.throttledEqualise = STORM.UTILS.throttle(this.equalise, 60);
global.setTimeout(this.equalise.bind(this), 0);
global.addEventListener('resize', this.throttledEqualise.bind(this), false);
window.setTimeout(this.equalise.bind(this), 0);
window.addEventListener('resize', this.throttledEqualise.bind(this), false);
},

@@ -28,0 +28,0 @@ equalise: function() {

@@ -1,1 +0,1 @@

!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.StormEqualHeight=e()}(this,function(){"use strict";function t(t,e){var o=[].slice.call(document.querySelectorAll(t));if(0===o.length)throw new Error("Equal Height cannot be initialised, no augmentable elements found");return o.forEach(function(t,o){i[o]=STORM.UTILS.assign(Object.create(s),{DOMElements:[].slice.call(t.children),settings:STORM.UTILS.merge({},n,e)}),i[o].init()}),i}function e(e,n){i=[],t(e,n)}var i=[],n={minWidth:768},s={init:function(){this.throttledEqualise=STORM.UTILS.throttle(this.equalise,60),global.setTimeout(this.equalise.bind(this),0),global.addEventListener("resize",this.throttledEqualise.bind(this),!1)},equalise:function(){var t=0;this.DOMElements.forEach(function(e){e.style.height="auto",e.offsetHeight>t&&(t=e.offsetHeight)}),window.innerWidth<this.settings.minWidth||this.DOMElements.forEach(function(e){e.style.height=t+"px"})}};return{init:t,reload:e}});
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.StormEqualHeight=e()}(this,function(){"use strict";function t(t,e){var o=[].slice.call(document.querySelectorAll(t));if(0===o.length)throw new Error("Equal Height cannot be initialised, no augmentable elements found");return o.forEach(function(t,o){i[o]=STORM.UTILS.assign(Object.create(s),{DOMElements:[].slice.call(t.children),settings:STORM.UTILS.merge({},n,e)}),i[o].init()}),i}function e(e,n){i=[],t(e,n)}var i=[],n={minWidth:768},s={init:function(){this.throttledEqualise=STORM.UTILS.throttle(this.equalise,60),window.setTimeout(this.equalise.bind(this),0),window.addEventListener("resize",this.throttledEqualise.bind(this),!1)},equalise:function(){var t=0;this.DOMElements.forEach(function(e){e.style.height="auto",e.offsetHeight>t&&(t=e.offsetHeight)}),window.innerWidth<this.settings.minWidth||this.DOMElements.forEach(function(e){e.style.height=t+"px"})}};return{init:t,reload:e}});
{
"name": "storm-equal-height",
"version": "0.6.0",
"version": "0.6.1",
"description": "Layout helper to equalise the height of a set of DOM elements",

@@ -5,0 +5,0 @@ "author": "stormid",

@@ -19,4 +19,4 @@ (function(root, factory) {

this.throttledEqualise = STORM.UTILS.throttle(this.equalise, 60);
global.setTimeout(this.equalise.bind(this), 0);
global.addEventListener('resize', this.throttledEqualise.bind(this), false);
window.setTimeout(this.equalise.bind(this), 0);
window.addEventListener('resize', this.throttledEqualise.bind(this), false);
},

@@ -23,0 +23,0 @@ equalise: function() {

Sorry, the diff of this file is too big to display

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