storm-equal-height
Advanced tools
Comparing version 0.6.0 to 0.6.1
/** | ||
* @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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package