                         @sortReflection()
                         if (typeof @_delegate.sortUpdate == 'function')
                             @_delegate.sortUpdate(event, ui)
-                    
+
                 $(@_viewSelector+"_select").disableSelection()
-                
+
                 $(@_viewSelector+"_select").css("background-color", "transparent")
                 $(@_viewSelector+"_select").css("border", "0px transparent")
                 $(@_viewSelector+"_select").css("font-size", (@_textSize-4)+"pt")
 
         $(@_viewSelector+"_select").width(@_frame.size.width+"px")
         $(@_viewSelector+"_select").height(@_frame.size.height+"px")
-        
+
     count:->
         return @_listData.length
-        
+
     objectAtIndex:(index)->
         return @_listData[index]
-        
+
     indexOfObject:(target)->
         num = @_listData.indexOf(target)
         return num
-        
+
     getSelect:->
         return @_select
 
     setSelect:(@_select)->
         $(@_viewSelector+"_select").val(@_select)
-    
+
     sortReflection:->
         if (@_style == "JSListStyleSortable")
             arr = $(@_viewSelector+"_select").sortable("toArray")

                if ($(@_viewSelector+"_select").length)
                    $(@_viewSelector+"_select").remove()
                $(@_viewSelector).append(@_tag)
                
                $(@_viewSelector+"_select").sortable
                    placeholder: "ui-sortable-placeholder"
                    distance: 3

            for key, i in arr
                ret[i] = @_orglist[key]
            @_listData = ret

    setTextSize:(@_textSize)->
        if (@_listData?)
            @setListData(@_listData)

    addTarget:(action, tap = 1)->
        if (tap == 1)
            @_clickaction = action
        else
            @_dblclickaction = action

    setStyle:(@_style)->
        @setListData(@_listData)

    reload:->
        @setListData(@_listData)

    viewDidAppear:->
        super()
        @setListData(@_listData)
