Skip to content

Commit

Permalink
removed with statement
Browse files Browse the repository at this point in the history
  • Loading branch information
luiseduardobrito committed Sep 19, 2013
1 parent 4289e93 commit 341608f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node app
2 changes: 1 addition & 1 deletion client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 341608f

Please sign in to comment.