                     @container.toggle_executing false
                     callback error, result
 
-        cursor_next: ({cursor, error, row, end}) =>
+        cursor_next: (cursor, {error, row, end}) =>
             @container.toggle_executing true
             cursor.next (err, row_) =>
                 @container.toggle_executing false
-                if error?
-                    if error.message is 'No more rows in the cursor.'
+                if err?
+                    if err.message is 'No more rows in the cursor.'
                         end()
                     else
                         error err


        template: Handlebars.templates['dataexplorer_result_raw-template']

        initialize: (args...) =>
            super args...
            @render()
            @fetch_batch_rows (row) => @render()

        init_after_dom_rendered: =>
            height = @$('.raw_view_textarea')[0].scrollHeight
            if height > 0

# abort button blinks

# no element found when closing connection

# split query result into:
