Is there a way in JavaScript to call a function without parentheses?
For example in jQuery:
$(\'#wrap\').text(\"asdf\"); will work and so will <
$(\'#wrap\').text(\"asdf\");
You can try something like this
var test = { method1 : function(bar) { // do stuff here alert(bar); }, method2 : function(bar) { // do stuff here alert(bar); } }; test.method1("foo"); test.method2("fooo");