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;