Browse Source

src : jsHint : move `-` to previous line

pull/27/merge
David DeSandro 14 years ago
parent
commit
31aa9198ac
  1. 16
      jquery.isotope.js

16
jquery.isotope.js

@ -951,10 +951,10 @@
this.cellsByRow.atomsLen = $elems.length; this.cellsByRow.atomsLen = $elems.length;
$elems.each( function( i ){ $elems.each( function( i ){
var $this = $(this), var $this = $(this),
x = ( i % cols + 0.5 ) * instance.cellsByRow.columnWidth x = ( i % cols + 0.5 ) * instance.cellsByRow.columnWidth -
- $this.outerWidth(true) / 2 + instance.posLeft, $this.outerWidth(true) / 2 + instance.posLeft,
y = ( ~~( i / cols ) + 0.5 ) * instance.cellsByRow.rowHeight y = ( ~~( i / cols ) + 0.5 ) * instance.cellsByRow.rowHeight -
- $this.outerHeight(true) / 2 + instance.posTop; $this.outerHeight(true) / 2 + instance.posTop;
instance._pushPosition( $this, x, y ); instance._pushPosition( $this, x, y );
}); });
return this; return this;
@ -1162,10 +1162,10 @@
this.cellsByColumn.atomsLen = $elems.length; this.cellsByColumn.atomsLen = $elems.length;
$elems.each( function( i ){ $elems.each( function( i ){
var $this = $(this), var $this = $(this),
x = ( ~~( i / rows ) + 0.5 ) * instance.cellsByColumn.columnWidth x = ( ~~( i / rows ) + 0.5 ) * instance.cellsByColumn.columnWidth -
- $this.outerWidth(true) / 2 + instance.posLeft, $this.outerWidth(true) / 2 + instance.posLeft,
y = ( i % rows + 0.5 ) * instance.cellsByColumn.rowHeight y = ( i % rows + 0.5 ) * instance.cellsByColumn.rowHeight -
- $this.outerHeight(true) / 2 + instance.posTop; $this.outerHeight(true) / 2 + instance.posTop;
instance._pushPosition( $this, x, y ); instance._pushPosition( $this, x, y );
}); });
return this; return this;

Loading…
Cancel
Save