                     value = result.value
                 else
                     @profile = null
-                    value = result 
+                    value = result
                 if typeof value._next is 'function' # if it's a cursor
                     @type = 'cursor'
                     @results = []

            return @

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

# "Session is already running a query" 400 error when aborting a changefeed
# views should not completely redraw every added row
# close connection: element not found
# call to query_result.size and other code assumes that result is an array
# 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
# "Possibly unhandled RqlRuntimeError. This HTTP connection is not open" when running a query after a changefeed query
# 

# refactor query_result

