       data:
         query: query
         limit: limit
-      processData: true,
+      processData: true
       success: (data, status, xhr) =>
         App.Collection.loadAssets(data.assets)
         result = {}


    # use cache for search result
    currentTime = new Date
    if @searchResultCache[cacheKey] && @searchResultCache[cacheKey].time > currentTime.setSeconds(currentTime.getSeconds() - 20)
      render(@searchResultCache[cacheKey].result)
      return

    App.Ajax.request(

class _globalSearchSingleton extends Spine.Module

  constructor: ->
    @searchResultCache = undefined
    @searchResultCacheByKey = {}
    @apiPath = App.Config.get('api_path')

  execute: (params) ->
