From 49006a3b6a538a49feb9acae0ea993e566b3602c Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Thu, 8 Dec 2011 23:32:51 +0100 Subject: [PATCH] Don't make the globalPads too global ;) --- node/db/PadManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/db/PadManager.js b/node/db/PadManager.js index 46eb3c966..7471a0f20 100644 --- a/node/db/PadManager.js +++ b/node/db/PadManager.js @@ -31,7 +31,7 @@ var db = require("./DB").db; * If this is needed in other places, it would be wise to make this a prototype * that's defined somewhere more sensible. */ -globalPads = { +var globalPads = { get: function (name) { return this[':'+name]; }, set: function (name, value) { this[':'+name] = value; }, remove: function (name) { delete this[':'+name]; }