From 5c325b8d4125027b8c1346aaa0af0d625895b84a Mon Sep 17 00:00:00 2001 From: William Toohey Date: Sun, 24 Jan 2016 17:59:59 +1000 Subject: [PATCH] IIFE and 'use strict', forgot respack --- js/ResourcePack.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/ResourcePack.js b/js/ResourcePack.js index b935037..8ce9b44 100644 --- a/js/ResourcePack.js +++ b/js/ResourcePack.js @@ -19,6 +19,9 @@ * THE SOFTWARE. */ + (function(window, document) { +"use strict"; + var debugConsole = false; function debug() { if(debugConsole) { @@ -456,6 +459,7 @@ Respack.prototype.parseSongQueue = function() { }; Respack.prototype.parseImageQueue = function() { + var match; var imgFile = this.imageQueue.shift(); var name = imgFile.name.replace(this.imageExtensions, ""); @@ -538,4 +542,8 @@ Respack.prototype.tryFinish = function() { debug("Finished parsing images/songs, parsing xml files..."); this.parseXML(); } -}; \ No newline at end of file +}; + +window.Respack = Respack; + +})(window, document); \ No newline at end of file