 
     _focusOut: (event) ->
       # console.log "focusout"
-      that = this
-      setTimeout ->
-        that._closeMenu()
+      setTimeout =>
+        @_closeMenu()
       , 300
       true
 

      if id is null or id is undefined or id is ""
        @initializing = false
        return @valueField.val()
      that = this
      url = this.sourceURL()
      $.ajax
        url: url
        dataType: "json"
        data:
          id: id
        success: (data, status, request) ->
          listItem = $.parseJSON(request.responseText)[0]
          if listItem?
            that._select listItem.id, listItem.label, triggerEvents
            that.element.prop("ready", true)
          else
            console.warn "JSON cannot be parsed. Get: #{request.responseText}."
        error: (request, status, error) ->

          parameters = {}
          if selected.data("new-item").length > 0
            parameters.name = selected.data("new-item")
          E.dialog.open @element.data("selector-new-item"),
            data: parameters
            returns:
              success: (frame, data, status, request) =>
                @_set(request.getResponseHeader("X-Saved-Record-Id"), true)
                frame.dialog "close"
              invalid: (frame, data, status, request) ->
                frame.html request.responseText
