IIFE and 'use strict', forgot respack

master
William Toohey 10 years ago
parent 08781b2b52
commit 5c325b8d41
  1. 10
      js/ResourcePack.js

@ -19,6 +19,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
(function(window, document) {
"use strict";
var debugConsole = false; var debugConsole = false;
function debug() { function debug() {
if(debugConsole) { if(debugConsole) {
@ -456,6 +459,7 @@ Respack.prototype.parseSongQueue = function() {
}; };
Respack.prototype.parseImageQueue = function() { Respack.prototype.parseImageQueue = function() {
var match;
var imgFile = this.imageQueue.shift(); var imgFile = this.imageQueue.shift();
var name = imgFile.name.replace(this.imageExtensions, ""); var name = imgFile.name.replace(this.imageExtensions, "");
@ -538,4 +542,8 @@ Respack.prototype.tryFinish = function() {
debug("Finished parsing images/songs, parsing xml files..."); debug("Finished parsing images/songs, parsing xml files...");
this.parseXML(); this.parseXML();
} }
}; };
window.Respack = Respack;
})(window, document);
Loading…
Cancel
Save