Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Commit 9e4b71c

Browse files
author
Steven Vachon
committed
v0.2
1 parent 4a147e4 commit 9e4b71c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

jquery.wrecker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* jQuery Wrecker v0.1
2+
* jQuery Wrecker v0.2
33
* Responsive Equal-Height Columns and Rows
44
* http://www.svachon.com/blog/wrecker-responsive-equal-height-columns-and-rows
55
*
@@ -41,10 +41,9 @@ $.Wrecker = function()
4141
function calculateGrid()
4242
{
4343
var newColumnCount = settings.maxColumns;
44-
var numResponsiveColumns = settings.responsiveColumns.length;
4544
var windowWidth = $(window).innerWidth();
4645

47-
for (var i=0; i<numResponsiveColumns; i++)
46+
for (var i=0, numResponsiveColumns=settings.responsiveColumns.length; i<numResponsiveColumns; i++)
4847
{
4948
var currentSize = settings.responsiveColumns[i];
5049

@@ -164,6 +163,7 @@ $.Wrecker = function()
164163
$.fn.wrecker = function(options)
165164
{
166165
var optionsString = (typeof options === "string");
166+
var args = Array.prototype.slice.call(arguments, 1);
167167

168168
this.each(function(i)
169169
{
@@ -184,7 +184,7 @@ $.fn.wrecker = function(options)
184184
return;
185185
}
186186

187-
instance[options].apply(instance, Array.prototype.slice.call(arguments,1) );
187+
instance[options].apply(instance, args);
188188
}
189189
else
190190
{

jquery.wrecker.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)