         $el.on "click", ".select-color .selected-color", (event) ->
             event.preventDefault()
             $scope.$apply ->
-                $model.$modelValue.color = $scope.color            
+                $model.$modelValue.color = $scope.color
             $el.find(".select-color").hide()
 
         $scope.$on "$destroy", ->

        })

        tdom.on "sortstop", (event, ui) ->
            parentEl = ui.item.parent()
            itemEl = ui.item
            itemValue = itemEl.scope().value
            itemIndex = itemEl.index()

        itemEl = null
        tdom = $el.find(".sortable")

        tdom.sortable({
            handle: ".row.table-main.visualization",
            dropOnEmpty: true
