Browse Source

js: whitespace tweaks in _getSegments

pull/14/head
David DeSandro 14 years ago
parent
commit
073589f250
  1. 4
      src/jquery.ionize.js

4
src/jquery.ionize.js

@ -458,11 +458,11 @@
// if colW == 0, back out before divide by zero
if ( !this[ namespace ][ measure ] ) {
$.error( UCSize + ' of ' + segments + 'calculated to be zero. Stopping Ionize plugin before divide by zero. Check that the width of first child inside the ionize container is not zero.')
$.error( measure + 'calculated to be zero. Stopping Ionize plugin before divide by zero. Check that the width of first child inside the ionize container is not zero.')
return this;
}
this[ size ] = this.element[ size ]();
this[ namespace ][ segments ] = Math.floor( this[ size ] / this[ namespace ][ measure ] ) ;
this[ namespace ][ segments ] = Math.floor( this[ size ] / this[ namespace ][ measure ] );
this[ namespace ][ segments ] = Math.max( this[ namespace ][ segments ], 1 );
return this;

Loading…
Cancel
Save