     @$el.empty()
     html = @template(@model.attributes)
     @$el.html(html)
+    @callbackWrapper = null
+    if @mget('callback_policy') == 'continious'
+      @callbackWrapper = () ->
+        @mget('callback')?.execute(@model)
+    if @mget('callback_policy') == 'throttle' and @mget('callback')
+      @callbackWrapper = _.throttle(() ->
+        @mget('callback')?.execute(@model)
+      , @mget('callback_throttle'))
     @render()
 
   render: () ->

    @$( "##{ @mget('id') }" ).css('color', '#ffceab')

  slidestop: (event, ui) =>
      @$( "##{ @mget('id') }" ).css('color', '#f6931f')

  slide: (event, ui) =>
    value = ui.value
    logger.debug("slide value = #{value}")
    @$( "##{ @mget('id') }" ).val( ui.value )
    @mset('value', value)
    @mget('callback')?.execute(@model)

class Slider extends InputWidget.Model
  type: "Slider"

      value: @mget('value'),
      min: min,
      max: max,
      step: step,
      start: @slidestart,
      stop: @slidestop,
      slide: @slide
    }
    @$('.slider').slider(opts)
    @$( "##{ @mget('id') }" ).val( @$('.slider').slider('value') )
    return @
