instance method Spah.StateServer#identifyWarmRequest
Spah.StateServer#identifyWarmRequest(delegateOrObject) → String, Object
- delegateOrObject (Function
REXML could not parse this XML/HTML: <Boolean>, Object): Either a function to use as a delegate, or the object being checked using the delegate.
Tells Spah how to determine the warmth of a request, or determines the warmth of a given request. Warm requests are those made via AJAX or other asynchronous means. The given delegate function should return true
if the given request is warm and false
if the request is cold.
When called with a function as the argument, sets the delegate function used by Spah to make this determination. When called with an object argument, passes the argument to the delegate function and returns the result.