Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here's a TOTAL shot in the dark ...</p> <p>the .8 invocation creates a dojo instance .. that's normal ... and it kills your old dojo.</p> <p>Try cloning the dojo object which is created in line 1 to another variable, immediately following the instantiation. Then following the rest of the process, clone the 1.8 dojo instance also to another variable. </p> <p>Finally clone the new variables back into dojo and dojo18 respectively ... </p> <p>No promises, but it's a quick thing you can try before you get too deep in and I'm also interested to see if it works. If it does work you should also be able to use djConfig for the first instance and dojoConfig for the second ...</p> <p>Sorry ... I'm on my mobile so I can't test it :) ...</p> <p>Later .. a really scruffy test, but this worked ...</p> <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.4.3/dojo/dojo.xd.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" &gt;var dojette = dojo;&lt;/script&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" &gt;var dojo18 = dojo;&lt;/script&gt; &lt;script type="text/javascript" &gt;var dojo = dojette; console.log(dojo.version); console.log(dojo18.version); &lt;/script&gt; </code></pre> <p>and if you dump dojo and dojo18 as complete objects you'll find they are complete with functions etc. I didn't go any further with separating out the module namespaces etc, so the rest of my code still blew up, but it's a start ... I hope it helped ... </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload