Permalink
Browse files

Filedata access is now working.

  • Loading branch information...
1 parent 7c2ae2e commit f7f7e8c362dfcbb573394ff1668e0fe1e8e16f09 @haehn haehn committed Jun 5, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 io/loader.js
View
@@ -180,6 +180,9 @@ X.loader.prototype.load = function(container, object) {
}
+ // add this loading job to our jobs map
+ this._jobs.set(container._id, false);
+
// check the file format which returns the filepath, extension and the parser
var _checkresult = this.checkFileFormat(container);
var filepath = _checkresult[0];
@@ -223,9 +226,6 @@ X.loader.prototype.load = function(container, object) {
// .. and GO!
request.send(null);
- // add this loading job to our jobs map
- this._jobs.set(container._id, false);
-
};
@@ -263,7 +263,7 @@ X.loader.prototype.parse = function(request, container, object) {
// check if we have loaded data or attached raw data
var _data = container._filedata;
- if (!_data) {
+ if (_data == null) {
// use the loaded data
_data = request.response;

0 comments on commit f7f7e8c

Please sign in to comment.