diff options
author | Matt Thomas <matt@betweenbrain.com> | 2013-05-15 06:56:43 -0400 |
---|---|---|
committer | Matt Thomas <matt@betweenbrain.com> | 2013-05-15 06:56:43 -0400 |
commit | a7c967f7cdcb66746b5a67576e0e0b82ce4d07b0 (patch) | |
tree | 5c904a4055e6d5023259e360459bcf99382e038f | |
parent | ab692d216110d2e5d6ebab53e3f982c5925d6590 (diff) | |
download | jQuery.equalHeights-a7c967f7cdcb66746b5a67576e0e0b82ce4d07b0.zip jQuery.equalHeights-a7c967f7cdcb66746b5a67576e0e0b82ce4d07b0.tar.gz jQuery.equalHeights-a7c967f7cdcb66746b5a67576e0e0b82ce4d07b0.tar.bz2 |
Minify modified file
-rw-r--r-- | jquery.equalheights.min.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery.equalheights.min.js b/jquery.equalheights.min.js index f2bd89b..660349e 100644 --- a/jquery.equalheights.min.js +++ b/jquery.equalheights.min.js @@ -8,4 +8,4 @@ * * @version 1.3 */ -(function(a){a.fn.equalHeights=function(){var b=0,c=a(this);return c.each(function(){var c=a(this).innerHeight();c>b&&(b=c)}),c.height(b)}})(jQuery); +(function($){$.fn.equalHeights=function(){var maxHeight=0,$this=$(this);$this.each(function(){var height=$(this).innerHeight();if(height>maxHeight){maxHeight=height}});return $this.height(maxHeight)};var target=$('[data-heights="equal"]').attr('data-targets'),init='[data-heights="equal"] '+target;$(init).equalHeights()})(jQuery); |