Just an object with some helpful functions
Members
-
staticBarba.Utils.xhrTimeoutNumber
-
Time in millisecond after the xhr request goes in timeout
- Default Value:
- 5000
Methods
-
staticBarba.Utils.deferred(){Deferred}
Utils/Utils.js, line 102 -
Return a new "Deferred" object https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Deferred
-
staticBarba.Utils.extend(obj, props){object}
Utils/Utils.js, line 83 -
Get obj and props and return a new object with the property merged
Name Type Description obj
object props
object -
staticBarba.Utils.getCurrentUrl(){String}
Utils/Utils.js, line 14 -
Return the current url
-
staticBarba.Utils.xhr(url){Promise}
Utils/Utils.js, line 49 -
Start an XMLHttpRequest() and return a Promise
Name Type Description url
String