+# TODO ATN
 # views should not completely redraw every added row
-# when feed: replace query time in statusbar with special changefeed ticker
-# stop ticking when changefeed gets aborted
 # many of the fields of the parent view don't get updated when they change
-# some 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
 # "Possibly unhandled RqlRuntimeError. This HTTP connection is not open" when aborting a query after a changefeed query
-
-# ticker shows throughout
-# move more results button into individual views
-# returned/displayed/skipped has extra comma and is generally ugly
-
-# round-trip time for cursors is inconsistent
 
 # Copyright 2010-2012 RethinkDB, all rights reserved.
 module 'DataExplorerView', ->

        constructor: (options) ->
            @container = options.container
            @concurrent = 0
            @total_duration = 0

        _begin: =>
            if @concurrent == 0

                            events:
                                error: (query_result, err) =>
                                    @results_view_wrapper.render_error(@query, err)
                                ready: (query_result) =>
                                    if query_result.is_feed
                                        @toggle_executing true
                                        @disable_toggle_executing = true
                                        for event in ['end', 'discard', 'error']
                                            query_result.on event, () =>
                                                @disable_toggle_executing = false
                                                @toggle_executing false

                        @state.query_result = query_result

                        @results_view_wrapper.set_query_result
                            query_result: @state.query_result

                    @disable_toggle_executing = false
                    @driver_handler.run_with_new_connection rdb_query,
                        optargs:
                            binaryFormat: "raw"
