diff --git a/source/Ox/js/Request.js b/source/Ox/js/Request.js index 91474fe6..2f2c3978 100644 --- a/source/Ox/js/Request.js +++ b/source/Ox/js/Request.js @@ -31,7 +31,7 @@ Ox.get = function(url, callback) { /*@ Ox.getAsync Runs an asynchonous loader for an array of URLs (urls, get, callback) -> undefined - urls URL or array of URLs or array of such arrays + urls URL or array of URLs or array of such arrays Multiple URLs in the same array will be processed simultaneously, but multiple arrays of URLs will be processed sequentially get Asynchronous function that loads a URL (for example Ox.get) @@ -156,7 +156,7 @@ Ox.getAsync = function(urls, get, callback) { /*@ Ox.getFile Loads a file (image, script or stylesheet) (file, callback) -> undefined - file Local path or remote URL, or array of those, or array of such arrays + file Local path or remote URL, or array of those, or array of such arrays Multiple files in the same array will be processed simultaneously, but multiple arrays of files will be processed in that order. callback Callback function @@ -169,7 +169,7 @@ Ox.getAsync = function(urls, get, callback) { /*@ Ox.getImage Loads an image (file, callback) -> undefined - file Local path or remote URL, or array of those, or array of such arrays + file Local path or remote URL, or array of those, or array of such arrays Multiple files in the same array will be processed simultaneously, but multiple arrays of files will be processed in that order. callback Callback function @@ -182,24 +182,24 @@ Ox.getAsync = function(urls, get, callback) { /*@ Ox.getScript Loads a script (file, callback) -> undefined - file Local path or remote URL, or array of those, or array of such arrays + file Local path or remote URL, or array of those, or array of such arrays Multiple files in the same array will be processed simultaneously, but multiple arrays of files will be processed in that order. callback Callback function @*/ - Ox.getScript = function() { + Ox.getScript = function(url, callback) { getFiles('script', url, callback); }; /*@ Ox.getStylesheet Loads a stylesheet (file, callback) -> undefined - file Local path or remote URL, or array of those, or array of such arrays + file Local path or remote URL, or array of those, or array of such arrays Multiple files in the same array will be processed simultaneously, but multiple arrays of files will be processed in that order. callback Callback function @*/ - Ox.getStylesheet = function() { + Ox.getStylesheet = function(url, callback) { getFiles('stylesheet', url, callback); }; @@ -208,7 +208,7 @@ Ox.getAsync = function(urls, get, callback) { /*@ Ox.getJSON Get and parse one or more remote JSON files (url, callback) -> undefined - url One or more remote URLs + url One or more remote URLs callback Callback function data <*|o|null> Parsed contents, or `null` on error For multiple URLs, keys are URLs, values are data, `{}` on error @@ -232,7 +232,7 @@ Ox.getJSON = function(url, callback, isJSONC) { Ox.getJSONC Get and parse a remote JSONC file JSONC is JSON with JavaScript line or block comments (url, callback) -> undefined - url One or more remote URLs + url One or more remote URLs callback Callback function data <*|o|null> Parsed contents, or `null` on error For multiple URLs, keys are URLs, values are data, `{}` on error @@ -248,7 +248,7 @@ Ox.getJSONC = function(url, callback) { /*@ Ox.getJSONP Get and parse one or more remote JSONP files (url, callback) -> undefined - url One or more remote URLs + url One or more remote URLs {callback} gets replaced with jsonp callback function name callback Callback function data <*|o|null> Parsed contents, or `null` on error