From 341608f4328fe80f755e48c788da1fe3a2c8a423 Mon Sep 17 00:00:00 2001 From: Luis Eduardo Brito Date: Thu, 19 Sep 2013 02:32:54 -0300 Subject: [PATCH] removed with statement --- Procfile | 1 + client/app.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..5106273 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: node app \ No newline at end of file diff --git a/client/app.js b/client/app.js index 071db66..0c48f32 100644 --- a/client/app.js +++ b/client/app.js @@ -114,7 +114,7 @@ $("[data-subscribe='"+event+"']").each(function(){ var action = $(this).attr("data-action") || "(function(){})();"; - (new Function("data", "with(this) { try {" + action + "} catch(e){ throw e; } }")).call(this, data || {}); + (new Function("data", "{ try {" + action + "} catch(e){ throw e; } }")).call(this, data || {}); }); }; exports.publish = publish;