Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mmavko committed Nov 23, 2011
1 parent 59216df commit 223f849
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sortable.coffee
Expand Up @@ -84,6 +84,7 @@ class Sortable
maxi = @$items.length - 1
ci = 0 if ci < 0
ci = maxi if ci > maxi
# move item
if @di < 0 then func = 'before' else func = 'after'
$(@$items.get ci)[func] @$target unless ci is @ti
delete @di
Expand Down

0 comments on commit 223f849

Please sign in to comment.