Browse Source

minor bug tweaks for no console.log browsers

pull/14/head
David DeSandro 14 years ago
parent
commit
355db2221a
  1. 2
      _config.yml
  2. 10
      _layouts/elements.html
  3. 2
      src/jquery.ionize.js

2
_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]

10
_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 });

2
src/jquery.ionize.js

@ -537,7 +537,7 @@
instance._masonryPlaceBrick( $this, groupCount, groupY );
}
});
};
},
// reset
_masonryReset : function() {

Loading…
Cancel
Save