Skip to content

Commit

Permalink
stylistic change
Browse files Browse the repository at this point in the history
  • Loading branch information
mmavko committed Nov 23, 2011
1 parent 223f849 commit 5916223
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions sortable.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

class Sortable

@defaultOptions:
itemSelector: 'li'
triggerSelector: ''
browserPrefix: '-webkit-'
transitionDuration: '0.1'

constructor: (el, options) ->
$.extend @, Sortable.defaultOptions, options
@$list = $(el).first()
Expand All @@ -9,12 +15,6 @@ class Sortable
mouseup: @onMouseUp
@$list.delegate "#{@itemSelector} #{@triggerSelector}", 'mousedown', @onMouseDown

@defaultOptions:
itemSelector: 'li'
triggerSelector: ''
browserPrefix: '-webkit-'
transitionDuration: '0.1'

refreshItems: ->
@$items = @$list.find @itemSelector
if @$items.length > 1
Expand Down
14 changes: 7 additions & 7 deletions sortable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5916223

Please sign in to comment.