AJAX breaks Ace

59 views
Skip to first unread message

Polymath

unread,
Feb 8, 2012, 10:43:33 PM2/8/12
to Ace Internals Dev
I found a major bug in Ace when trying to load Ace via AJAX (instead
of adding a <script> tag to the page), I use jQuery to load the
script.

this function:

https://github.com/ajaxorg/ace/blob/master/lib/ace/worker/worker_client.js#L115

this function tries to get the aceBaseUrl via the script tag if
aceBaseUrl is not defined, but the script tag doesn't exist because I
loaded the script via jQuery.

I tried setting ace.require.aceBaseUrl with no luck...
require.aceBaseUrl returns an error: require is not defined...
Reply all
Reply to author
Forward
0 new messages