I have a Javascript structure like below and it's about 8000 lines of code long:
var abc = {
test: function(){
abc.xyz()
},
testAbc : function(){
abc.123()
},
testxyz : function(){
abc.qws()
},
}
I don't want to repeat abc before every function call. Is this possible?
jQuery.extend(window, abc);
This solution requires jQuery.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With