From 355db2221a208bf3f0b37901f1541a155ddd6f09 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Sun, 19 Dec 2010 23:30:59 -0500 Subject: [PATCH] minor bug tweaks for no console.log browsers --- _config.yml | 2 +- _layouts/elements.html | 10 ++++++---- src/jquery.ionize.js | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/_config.yml b/_config.yml index 2de3b52..0199b8c 100644 --- a/_config.yml +++ b/_config.yml @@ -701,7 +701,7 @@ elements: - categories: [actinoid, metal, inner-transition-element] othercategory: f number: 102 - symbol: No + symbol: 'No' name: Nobelium weight: (259) - categories: [actinoid, metal, inner-transition-element] diff --git a/_layouts/elements.html b/_layouts/elements.html index 94bf14a..771d459 100644 --- a/_layouts/elements.html +++ b/_layouts/elements.html @@ -117,7 +117,7 @@ // console.log('starting') - console.time('initializeMe'); + // console.time('initializeMe'); $demo.ionize({ itemSelector : '.element', // layoutMode : 'clearFloat', @@ -155,7 +155,7 @@ } } }); - console.timeEnd('initializeMe'); + // console.timeEnd('initializeMe'); $('#filters').find('a').click(function(){ @@ -210,11 +210,13 @@ if ( wasHorizontal !== isHorizontal ) { // need to do some clean up for transitions and sizes - var style = isHorizontal ? { height: '80%' } : { width: 'auto' }; + var style = isHorizontal ? + { height: '80%', width: $demo.width() } : + { width: 'auto' }; $demo.addClass('no-transition').css( style ); setTimeout(function(){ $demo.removeClass('no-transition').ionize({ layoutMode : mode }); - }, 1 ) + }, 100 ) } else { // go ahead and apply new layout $demo.ionize({ layoutMode : mode }); diff --git a/src/jquery.ionize.js b/src/jquery.ionize.js index 54fae2c..173c73e 100755 --- a/src/jquery.ionize.js +++ b/src/jquery.ionize.js @@ -537,7 +537,7 @@ instance._masonryPlaceBrick( $this, groupCount, groupY ); } }); - }; + }, // reset _masonryReset : function() {