|
@@ -12,7 +12,7 @@
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
<div class="desc">
|
|
|
- A low level class for loading resources with XmlHttpRequest, used internaly by most loaders.
|
|
|
+ A low level class for loading resources with XMLHttpRequest, used internaly by most loaders.
|
|
|
It can also be used directly to load any file type that does not have a loader.
|
|
|
</div>
|
|
|
|
|
@@ -100,8 +100,8 @@ loader.load(
|
|
|
[page:String url] — the path or URL to the file. This can also be a
|
|
|
[link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs Data URI].<br />
|
|
|
[page:Function onLoad] — Will be called when loading completes. The argument will be the loaded response.<br />
|
|
|
- [page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance,
|
|
|
- that contains .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
|
+ [page:Function onProgress] — Will be called while load progresses. The argument will be the XMLHttpRequest instance,
|
|
|
+ which contains .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
|
[page:Function onError] — Will be called if an error occurs.<br /><br />
|
|
|
|
|
|
Load the URL and pass the response to the onLoad function.
|