mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
fixed scope bug
This commit is contained in:
parent
2e156c2f85
commit
654cf717ee
@ -283,8 +283,8 @@ define([
|
||||
reader.token = data.token;
|
||||
reader.onerror = function (event) {
|
||||
console.error(new Error("_unzipTileFiles Error: " + event.target.error.code).stack);
|
||||
that.emit(context.PARSING_ERROR, {msg: "Error parsing file: ", err: event.target.error});
|
||||
}.bind(this)
|
||||
that.emit(that.PARSING_ERROR, {msg: "Error parsing file: ", err: event.target.error});
|
||||
}
|
||||
reader.addEventListener("loadend", function (evt) {
|
||||
if(this.token != undefined){
|
||||
that._inMemTilesIndex.push("blank");
|
||||
@ -298,11 +298,7 @@ define([
|
||||
});
|
||||
reader.readAsArrayBuffer(data); //open bundleX
|
||||
}
|
||||
}.bind(that),
|
||||
function(err){
|
||||
console.log("unzipTileFile Error: " + JSON.stringify(err))
|
||||
this.emit(this.PARSING_ERROR, {msg: "Error parsing file: ", err: err});
|
||||
}.bind(that));
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user