I am trying to achieve something like the following but dont know whats wrong:
$.a = function() { // some logic here function abc(id) { alert(\'test\'+i
$.a = (function(){ var a = function() { //... }; a.abc = function() { //... } return a; })();