From ad4f9e3c7665238ab5a5f3c1a04d00a0ee0e2030 Mon Sep 17 00:00:00 2001 From: Preston Skupinski Date: Thu, 15 Dec 2011 00:00:20 -0500 Subject: [PATCH] use a self executing function to hide as much from global scope as possible --- cpu.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpu.js b/cpu.js index 2e32955..8a3bac7 100755 --- a/cpu.js +++ b/cpu.js @@ -14,7 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -function CPU_65816() { +(function(window) { + +window.CPU_65816 = function() { // Registers this.r = { a:0, // Accumulator @@ -7535,3 +7537,5 @@ var XBA = { } } }; + +})(window);