    laod time entry. uses promise.
   ###
   loadTimeEntries: (params) ->
-    r = @_bindDefer(null, null, "loadQueries")
+    r = @_bindDefer(null, null, "loadTimeEntries")
     params = params or {}
     params.limit = params.limit or Redmine.LIMIT_MAX
     config =

        args[0].url = @auth.url
        r.success(args...))
      .error(r.error)


  ###

      .success((args...) =>
        args[0].url = @auth.url
        r.success(args[0]))
      .error(r.error)
    return r.promise

  ###
   laod status. uses promise.
  ###
  loadStatuses: () ->
    r = @_bindDefer(null, null, "loadStatuses")
    config =
      method: "GET"
      url: @auth.url + "/issue_statuses.json"
    config = @_setBasicConfig config, @auth
    @$http(config)
      .success((args...) =>
        args[0].url = @auth.url
        r.success(args[0]))
      .error(r.error)
    return r.promise
