Bug 187571

Summary: Code generation: javascript with dojo support
Product: [Applications] umbrello Reporter: Laurent David <laurent.m.david>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: REPORTED ---    
Severity: wishlist CC: okellogg
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Files added and modified for use of js with dojo toolkit

Description Laurent David 2009-03-19 06:55:13 UTC
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.
Comment 1 Laurent David 2009-03-21 16:59:10 UTC
Created attachment 32321 [details]
Files added and modified for use of js with dojo toolkit
Comment 2 Oliver Kellogg 2022-02-15 16:01:32 UTC
(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