cleaning up XLSX leak

This commit is contained in:
SheetJS 2013-10-30 19:53:12 -07:00
parent fd6e3fa19b
commit 9e41edcbd2
4 changed files with 12 additions and 10 deletions

@ -1 +1,2 @@
var XLSX = (function(){
var XLSX = {};
(function(XLSX){

@ -520,6 +520,6 @@ function readFileSync(data, options) {
return readSync(data, o);
}
this.read = readSync;
this.readFile = readFileSync;
this.parseZip = parseZip;
XLSX.read = readSync;
XLSX.readFile = readFileSync;
XLSX.parseZip = parseZip;

@ -1,4 +1,4 @@
return this;
})();
})(XLSX);

11
xlsx.js

@ -222,7 +222,8 @@ SSF.format = format;
return SSF;
})();
var XLSX = (function(){
var XLSX = {};
(function(XLSX){
function parsexmltag(tag) {
var words = tag.split(/\s+/);
var z = {'0': words[0]};
@ -950,12 +951,12 @@ function readFileSync(data, options) {
return readSync(data, o);
}
this.read = readSync;
this.readFile = readFileSync;
this.parseZip = parseZip;
XLSX.read = readSync;
XLSX.readFile = readFileSync;
XLSX.parseZip = parseZip;
return this;
})();
})(XLSX);
var _chr = function(c) { return String.fromCharCode(c); };