Permalink
Browse files

stylistic change

  • Loading branch information...
1 parent 223f849 commit 5916223722bafc874b98819b2ecbbd25601a9785 @mmavko committed Nov 23, 2011
Showing with 13 additions and 13 deletions.
  1. +6 −6 sortable.coffee
  2. +7 −7 sortable.js
View
@@ -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()
@@ -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
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 5916223

Please sign in to comment.