As a general rule of thumb, the source/class directory should only
contain qooxdoo class code. I would propose the following approach:
1) Place the library in your source/resource directory, e.g.
myproject/source/resource/js/nameOfLibrary.js
2) Add a simple static class to your project that pulls in the library
using an asset hint, e.g.
@asset(myproject/source/resource/js/nameOfLibrary.js). In the defer
function of that class, create a <script> element that loads the
library, using the resource manager to get a URI that works in both
development and deployment versions of the app:
var uri =
qx.util.ResourceManager.getInstance().toUri('myproject/source/resource/js/nameOfLibrary.js');
var scriptEl = qx.bom.Element.create("script", {src: uri});
document.head.appendChild(scriptEl);
Now all that's left to do is to add a dependency to that loader class to
your application and the library will be available.
On 30.07.2014 08:15, kirra5 wrote:
> Hi
>
> One of the libraries is the jquery library.
> The errors look like this:
> "<class 'C:\...\myProject\source\class\project\...\nameOfLibrary.js'> :
> Syntax error ',' (pos (x, y)). "
>
> I hope this helps.
> Thank you very much!
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/generate-API-ignore-file-tp7585983p7586005.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel