Hi all, My code app runs like this:
//file app.js var runapp = function () { // I have about 1800 code lines using jquery like this: var fn1 = function (data) {//...code...}; var fn2 = function (data) {//...code...}; var fn3 = function (data) {//...code...}; fn1('blah'); }; //file index.html <script type="text/javascript"> $(document).ready(function(){ runapp(); }); </script> Now a days, this architecture works fine for me. But 1800 code lines is a big problem!!!! I think jQuery.extend is not a good solution, because I don't want make a plug-in. Can I have another solution? thanks!!!