new tart.dataProxy.Xhr()
Base model to handle xhr requests
Extends
Members
-
protectedparams
-
Methods
-
fetch(callback, opt_fail)
-
Fetch data from xhr and call a function with returned data
Name Type Description callback
function nullable function to call with returned data.
opt_fail
function optional function to call when request failed.
-
inherited setParams(params)
-
Set params as hash map.
Name Type Description params
goog.structs.Map hash map to hold fetch params