Closed jlubean closed 10 years ago
Hey @jlubean sorry for the late reply on this. I don't actually use requirejs, AMD support was added via a PR - hence the lack of support. Will attempt to debug though...
This should be fixed now in 0.6.12
see http://jpillora.com/xdomain/example/requirejs/
When I dynamically load xdomain.js (v0.6.11) from JavaScript (instead of using a
<script>
tag in the web page) that has already loaded require.js, I get an error of "xhook is not defined" (see jsfiddle):If I remove the require.js
<script>
tag above, I don't get the error (see jsfiddle).My quick fix hack is to insert the following on line 161:
window.xhook = xhook;