             'click [data-action="close-global-seach"]': 'hide'
 
     initialize: ->
+        @requests = new Requests [], {'all'}
+
         $(window).on 'keydown', (event) =>
             focusBody = $(event.target).is 'body'
             focusInput = $(event.target).is @$ 'input[type="search"]'


            @lastSearchQuery = query

            $.ajax
                url: "#{ config.apiRoot }/history/requests/search"
                data: requestIdLike: query

                success: (response) =>
                    @lastResponse = response
                    process response

        # Debounce event so we don't spam the server
        sourceFunction = _.debounce sourceFunction, 200

        @$('input').typeahead 
            highlight: true
        ,
            source: sourceFunction

View = require './view'

Requests = require '../collections/Requests'

class GlobalSearchView extends View

