     el: '<select tabIndex="0" class="bk-cell-editor bk-cell-editor-select" />'
 
     render: () ->
-      for option in @args.column.editorModel.get("options")
+      @disable_vertical_navigation()
+      for option in @model.get("options")
         @$el.append($('<option>').attr(value: option).text(option))
       @focus()
 

    initialize: (args) ->
      super({})
      @args = args
      @render()
      @$el.appendTo(@args.container)


    model: IntEditor

  class NumberEditorView extends CellEditorView

    el: '<input type="text" class="bk-cell-editor bk-cell-editor-number" />'

    render: () ->
      @$el.spinner(step: @model.get("step"))
      @disable_horizontal_navigation()
      @disable_vertical_navigation()
      @$el.focus().select()

    remove: () ->
      @$el.spinner("destroy")
      super()

    serializeValue: () ->
      return parseFloat(@getValue()) || 0.0

    loadValue: (item) ->
      super(item)
      @$el[0].defaultValue = @defaultValue
      @$el.select()

    validateValue: (value) ->
      if isNaN(value)
        return { valid: false, msg: "Please enter a valid number"}
      else
        return super(value)

  class NumberEditor extends CellEditor
    type: 'NumberEditor'
