From 661945c7286073fdea4b35d8400e3f18ce65392b Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Sun, 16 Jan 2011 12:59:45 -0500 Subject: [PATCH] docs : remove console.logs --- _includes/add-buttons.js | 5 ----- _includes/sort-buttons.js | 3 --- _layouts/elements.html | 9 +-------- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/_includes/add-buttons.js b/_includes/add-buttons.js index 23dbd21..9ff999e 100644 --- a/_includes/add-buttons.js +++ b/_includes/add-buttons.js @@ -1,16 +1,11 @@ $('#insert a').click(function(){ var i = Math.ceil( Math.random()*3 + 1 ), newEls = ''; - // window.console && console.log( i ) while ( i-- ) { newEls += fakeElement.create(); } var $newEls = $( newEls ) - // $container.append( $newEls ).isotope( 'appendToLayout', $newEls ); $container.isotope( 'insert', $newEls ); - // $container.append( $newEls ).isotope( 'addAtoms', $newEls ).isotope(); - // $container.isotope() - // console.log( next ) return false; }); diff --git a/_includes/sort-buttons.js b/_includes/sort-buttons.js index a127bd3..6871b11 100644 --- a/_includes/sort-buttons.js +++ b/_includes/sort-buttons.js @@ -5,12 +5,9 @@ var $this = $(this), sortName = $this.attr('href').slice(1), asc = $this.parents('.sort').hasClass('asc'); - // var sortTest = 'sort ' + sortName + ' ' + direction; - // console.time( sortTest ); $container.isotope({ sortBy : sortName, sortAscending : asc }); - // console.timeEnd( sortTest ); return false; }); \ No newline at end of file diff --git a/_layouts/elements.html b/_layouts/elements.html index e8e4b1e..4249caa 100644 --- a/_layouts/elements.html +++ b/_layouts/elements.html @@ -44,6 +44,7 @@ {{ content }} + {% include footer.html %} @@ -66,8 +67,6 @@ }); - // console.log('starting') - // console.time('initializeMe'); $container.isotope({ itemSelector : '.element', // layoutMode : 'fitRows', @@ -105,17 +104,13 @@ } } }); - // console.timeEnd('initializeMe'); $('#filters').find('a').click(function(){ // get href attribute, minus the #, plus a . to make it a class var filterName = '.' + $(this).attr('href').slice(1); filterName = filterName === '.show-all' ? '*' : filterName; - // var filterTest = 'filter ' + filterName; - // console.time( filterTest ); $container.isotope({ filter: filterName }) - // console.timeEnd( filterTest ); return false; }); @@ -124,9 +119,7 @@ // change size of clicked element $container.find('.element').live('click', function(){ $(this).toggleClass('large'); - // console.time('relayout'); $container.isotope('reLayout'); - // console.timeEnd('relayout'); }); // toggle variable sizes of all elements