Bug 187571 - Code generation: javascript with dojo support
Summary: Code generation: javascript with dojo support
Status: REPORTED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 06:55 UTC by Laurent David
Modified: 2022-02-15 16:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Files added and modified for use of js with dojo toolkit (20.15 KB, application/octet-stream)
2009-03-21 16:59 UTC, Laurent David
Details

Note You need to log in before you can comment on or make changes to this bug.
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