Skip to content

Commit

Permalink
Merge pull request #1 from nomensa/breakpoint-updates
Browse files Browse the repository at this point in the history
Breakpoint updates
  • Loading branch information
emcoward committed Nov 4, 2014
2 parents aba5288 + 7210150 commit f19fc4d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ $ grunt

## Release history

- 0.1.1 Updated destroy function to remove 'min-height' attribute
- 0.1.0 Tagged stable version for release

Copyright © 2014 [@nomensa](http://nomensa.com)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-equal-heights",
"version": "0.1.0",
"version": "0.1.1",
"authors": [
"(Nomensa <tech@nomensa.com>)"
],
Expand Down
1 change: 0 additions & 1 deletion equalHeightsSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ describe('equalHeights', function () {
breakpoint: '300'
});
testElement1.data('plugin_equalheights').destroy();
expect(testElement1.find('.column-inner').css('min-height')).toBe('0px');
expect(testElement1.find('.column-inner').attr('style')).not.toContain('min-height: 350px');
});
});
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<body>
<div class="header">
<p><a href="http://nomensa.com?plugin"><img src="gh-pages/img/nomensa-logo.png" alt="Nomensa humanising technology" width="135" height="38"/></a></p>
<p><a href="http://nomensa.com?plugin"><img src="gh-pages/img/nomensa-logo.png" alt="Nomensa humanising technology" width="135" heaight="38"/></a></p>
</div><!-- .header -->

<div class="main" role="main">
Expand Down
4 changes: 2 additions & 2 deletions jquery.equal-heights.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @description: Ensures the elements matched are the height of the highest element.
* @source: http://github.com/nomensa/jquery.equal-heights
* @version: '0.1.0'
* @version: '0.1.1'
*
* @author: Nomensa
* @license: licenced under MIT - http://opensource.org/licenses/mit-license.php
Expand Down Expand Up @@ -70,7 +70,7 @@
return the dom to it's original form
*/
return $('.' + this.options.target, this.element).each(function () {
$(this).css('min-height', 0);
$(this).css('min-height', '');
});

};
Expand Down
4 changes: 2 additions & 2 deletions jquery.equal-heights.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*
* @description: Ensures the elements matched are the height of the highest element.
* @source: http://github.com/nomensa/jquery.equal-heights
* @version: '0.1.0'
* @version: '0.1.1'
*
* @author: Nomensa
* @license: licenced under MIT - http://opensource.org/licenses/mit-license.php
*/
!function(a,b){"use strict";function c(c,d){function f(){var c=a(b).width();if(c>g.options.breakpoint){var d=0;g.target.each(function(){a(this).height()>d&&(d=a(this).height())}),g.target.css({"min-height":d})}}var g=this;g.element=a(c),g.options=a.extend({},e,d),g.target=g.element.find("."+g.options.target),a(b).on("debouncedresize",function(){g.destroy(),f()}),f()}var d,e;d="equalheights",e={target:"column-inner",breakpoint:"768"},c.prototype.rebuild=function(){return new c(this.element,this.options)},c.prototype.destroy=function(){return a("."+this.options.target,this.element).each(function(){a(this).css("min-height",0)})},a.fn[d]=function(b){return this.each(function(){a.data(this,"plugin_"+d)||a.data(this,"plugin_"+d,new c(this,b))})}}(jQuery,window,document);
!function(a,b){"use strict";function c(c,d){function f(){var c=a(b).width();if(c>g.options.breakpoint){var d=0;g.target.each(function(){a(this).height()>d&&(d=a(this).height())}),g.target.css({"min-height":d})}}var g=this;g.element=a(c),g.options=a.extend({},e,d),g.target=g.element.find("."+g.options.target),a(b).on("debouncedresize",function(){g.destroy(),f()}),f()}var d,e;d="equalheights",e={target:"column-inner",breakpoint:"768"},c.prototype.rebuild=function(){return new c(this.element,this.options)},c.prototype.destroy=function(){return a("."+this.options.target,this.element).each(function(){a(this).css("min-height","")})},a.fn[d]=function(b){return this.each(function(){a.data(this,"plugin_"+d)||a.data(this,"plugin_"+d,new c(this,b))})}}(jQuery,window,document);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-equal-heights",
"version": "0.1.0",
"version": "0.1.1",
"description": "Ensures the elements matched are the height of the highest element.",
"author": "Nomensa <tech@nomensa.com>",
"repository": {
Expand Down

0 comments on commit f19fc4d

Please sign in to comment.