Version: (using KDE 3.5.10) Compiler: g++ (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) OS: Linux Installed from: Ubuntu Packages I noticed that the code generation for Javascript is not fully complete and uses #include statements. I modified the jswriter.cpp so it can generate output for Javascript supported by the dojo toolkit (declare/require). It is still experimental but could be useful.
Created attachment 32321 [details] Files added and modified for use of js with dojo toolkit
(In reply to Laurent David from comment #0) > I noticed that the code generation for Javascript is not fully complete and > uses #include statements. I agree that that is a bug in the JSWriter. FWIW, in the meantime a plethora of mechanisms exists for accomplishing this in Javascript, see https://stackoverflow.com/questions/950087/how-do-i-include-a-javascript-file-in-another-javascript-file