     return if @isDisabled()
     
     if $.iphoneStyle.dragging
-      p: (x - $.iphoneStyle.dragStartPosition) / @rightSide
+      p = (x - $.iphoneStyle.dragStartPosition) / @rightSide
       @elem.attr('checked', (p >= 0.5))
     else
       @elem.attr('checked', !@elem.attr('checked'))
 
-    $.iphoneStyle.currentlyClicking: null
-    $.iphoneStyle.dragging: null
+    $.iphoneStyle.currentlyClicking = null
+    $.iphoneStyle.dragging          = null
     @elem.change()
     
   # Animate when we get a change event

  
  # Pixels that must be dragged for a click to be ignored
  dragThreshold:     5                          
}
# Copyright Thomas Reynolds, licensed GPL & MIT

# Constructor
$.iphoneStyle = (elem, options) ->
  @elem = $(elem)
  
  # Import options into instance variables
  obj = this
  
  for key, value of options
    obj[key] = value

  # Initialize the control
  @wrapCheckboxWithDivs()
