SearchResultModel

searchResults. SearchResultModel

new SearchResultModel()

Source:

Extends

  • Backbone.Model

Methods

blockRequests(value)

Source:
Sets value of blockNextRequest variable
Parameters:
Name Type Description
value String new value of blockNextRequest variable

checkBlockingRequest() → {String}

Source:
Returns value of blockNextRequest variable
Returns:
value of blockNextRequest variable
Type
String

getMyOffset() → {String|0}

Source:
Returns value of component offset from hash parameters
Returns:
value of offset
Type
String | 0

initialize()

Source:
Listens for changes on data from server
Listens to Events:
  • module:XA.component.search.vent~event:facet-data-loaded
  • module:XA.component.search.vent~event:results-loading

resultsLoaded(resultsData)

Source:
Updates model with new data from resultData parameter
Parameters:
Name Type Description
resultsData Object new component data

resultsLoading(cid)

Source:
Manages loadingMoreInProgress model variable
Parameters:
Name Type Description
cid Object component id