From 5d7b82251a323fe6ef011f41135cf0cf58f85e5b Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Mon, 6 Jun 2011 22:34:00 -0400 Subject: [PATCH] tests : jsHint centered masonry --- _posts/tests/2011-05-18-centered-masonry.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_posts/tests/2011-05-18-centered-masonry.html b/_posts/tests/2011-05-18-centered-masonry.html index a1ae9b1..e95c4d6 100644 --- a/_posts/tests/2011-05-18-centered-masonry.html +++ b/_posts/tests/2011-05-18-centered-masonry.html @@ -67,13 +67,13 @@ category: tests var parentWidth = this.element.parent().width(); // i.e. options.masonry && options.masonry.columnWidth - colW = this.options.masonry && this.options.masonry.columnWidth || + var colW = this.options.masonry && this.options.masonry.columnWidth || // or use the size of the first item this.$filteredAtoms.outerWidth(true) || // if there's no items, use size of container parentWidth; - cols = Math.floor( parentWidth / colW ); + var cols = Math.floor( parentWidth / colW ); cols = Math.max( cols, 1 ); // i.e. this.masonry.cols = .... @@ -101,7 +101,7 @@ category: tests var prevColCount = this.masonry.cols; // get updated colCount this._getCenteredMasonryColumns(); - return ( this.masonry.cols !== prevColCount ) + return ( this.masonry.cols !== prevColCount ); }; $.Isotope.prototype._masonryGetContainerSize = function() {