Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1390)

Unified Diff: samples/o3d-webgl/file_request.js

Issue 3083012: Tidying up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/o3d-webgl/draw_element.js ('k') | samples/o3d-webgl/material.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/o3d-webgl/file_request.js
===================================================================
--- samples/o3d-webgl/file_request.js (revision 55159)
+++ samples/o3d-webgl/file_request.js (working copy)
@@ -35,23 +35,23 @@
* to be loaded. Its use parallels that of XMLHttpRequest; you create one, call
* open, set the onreadystatechange callback, and call send.
* Note that unlike XMLHttpRequests, FileRequests cannot be reused.
- *
+ *
* For RawData loads, on success the RawData will be stored in the data field
* on the FileRequest itself. It is only valid until the FileRequest is freed by
* calling pack.removeObject(request).
- *
+ *
* var request = pack.createFileRequest("RAWDATA");
* request.open("GET", url, true);
* request.onreadystatechange = function() {
* if (request.done) {
* if (request.success) {
* var rawData = request.data;
- *
+ *
* ...
* } else {
* dump('Load of rawdata returned failure.');
* }
- *
+ *
* pack.removeObject(request);
* }
* };
« no previous file with comments | « samples/o3d-webgl/draw_element.js ('k') | samples/o3d-webgl/material.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698