Skip to content

Commit 927ff15

Browse files
committed
cleanup
1 parent 26d7c4a commit 927ff15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/js/jquery-sortable.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,10 @@
400400

401401
function Container(element, options) {
402402
this.el = element
403-
this.floatRight = false
404403
this.options = $.extend( {}, containerDefaults, options)
405404

406405
this.group = ContainerGroup.get(this.options)
407-
this.rootGroup = this.options.rootGroup = this.options.rootGroup || this.group
406+
this.rootGroup = this.options.rootGroup || this.group
408407
this.parentContainer = this.options.parentContainer
409408
this.handle = this.rootGroup.options.handle || this.rootGroup.options.itemSelector
410409

@@ -475,7 +474,7 @@
475474
} else {
476475
var xCenter = (dim[0] + dim[1]) / 2,
477476
inLeftHalf = pointer.left <= xCenter
478-
if(inLeftHalf != this.floatRight){
477+
if(inLeftHalf){
479478
method = "before"
480479
sameResultBox.right -= width / 2
481480
} else

0 commit comments

Comments
 (0)