     $(jQelm).draggable({
       containment: 'parent'
       start: (event, ui) ->
-        widget.render = false
         for series in widget.data
           series.values = series.values.slice()
       stop: (event, ui) ->
         widget.position = ui.position
-        widget.render = true
+        widget.update()
       })
 )
 

    jQelm = $(elm[0])
    $(jQelm).resizable({
      start: (event, ui) ->
        widget.render = false
        for series in widget.data
          series.values = series.values.slice()
      stop: (event, ui) ->
        widget.render = true
    })
)



.controller('widgetCtrl', [
  '$scope'
  'widgetFactory'
  'robot'

($scope, widgetFactory, robot) ->
  $scope.widgets = []
  $scope.mostRecentWidget = {}

