             @error = error
             @trigger 'error', @, error
             @discard_results = true
-            @ended = true 
+            @ended = true
 
         size: =>
             switch @type

# call to query_result.size and other code assumes that result is an array
# 400 bad request when aborting changefeed
# table view shows no results when it means "no more results" or "no results yet"
# abort button blinks when runnign a normal query
# abort blinks constantly when running a changefeed
# no element found when closing connection

# refactor query_result


            return @

        new_view: () =>
            @view_object?.remove()
            @view_object = new @views[@view]
                parent: @
                query_result: @query_result
