Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] embeddededitor and require.js

Hi John,

We changed all the editor code (textview and editor) to be regular requirejs components. We still support the non-requirejs case, but the users needs to include orion/textview/global.js for that to work. The embeddededitor is non-requirejs sample, the /examples/textview/demo.html is pure requirejs.

You said that you already have require() defined (thus orion/textview/global.js breaks you). Why is require() defined for you ? Do you have requirejs loaded ? almond maybe (https://github.com/jrburke/almond ) ?

Or is this what you need ? https://bugs.eclipse.org/bugs/show_bug.cgi?id=365388

Felipe




From: John J Barton <johnjbarton@xxxxxxxxxxxxxxx>
To: Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date: 12/01/2011 10:57 PM
Subject: [orion-dev] embeddededitor and require.js
Sent by: orion-dev-bounces@xxxxxxxxxxx





I'm trying to update my embeddededitor to the 0.4 master version.
Among the changes, the newer version uses define() and it uses shim
window.require() to allow the files with define() in them to be loaded
with script tags.

However my code uses require() so the shim breaks me.

Obviously the solution is to remove the script tags and use require.
But I don't know the dependency tree: does anyone know easily what
needs to be called in? I can always use binary search.

jjb
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev




Back to the top