     'change #order': 'compileQuery'
     'click #submitCustomDate': 'changeCustomDate'
 
+  # XXX (Mispy): This is a bit messy and redundant
+  # with the server-side code. Perhaps refactor so
+  # we can just pass through the results of server-side
+  # query parsing.
   psplit: (query) ->
     split = []
     depth = 0

      if finish.isValid() then range += finish.format('YYYY-MM-DD')
      range


  compileQuery: ->
    query = []


    if FromServer.advanced? && FromServer.advanced.length > 0
      @toggleAdvanced()
      @readQuery(FromServer.advanced)

    engine = new Bloodhound(
      datumTokenizer: ((d) -> Bloodhound.tokenizers.whitespace(d.uid))
