Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are several ways to do it:</p> <ul> <li>Stick to one version of Dojo and use it consistently.</li> <li>Move modified code to your own namespace and include it from there. <ul> <li>Effectively it is a forking of an existing DojoX module. All code syncing and back porting is your responsibility.</li> <li>Pay attention to the rest of Dojo &mdash; if it changes in such a way that it breaks your forked version, be ready to patch your module as well.</li> </ul></li> <li>Copy modified files somewhere and include/require them before the original file is required.</li> </ul> <p>To illustrate the latter technique imagine that there is one file I want to patch located in dojox/charting/abc.js:</p> <pre><code>dojo.provide("dojox.charting.abc"); // the rest of the file ... </code></pre> <p>I can copy it to my directory as, say, my/patched_abc.js, and make it look like that:</p> <pre><code>dojo.provide("my.patched_abc"); // now I include the rest of the file with my modifications dojo.provide("dojox.charting.abc"); // the rest of the file ... </code></pre> <p>In my code that uses dojox.charting I include it like that:</p> <pre><code>dojo.require("my.patched_abc"); // now I can include dojox.charting, // which will use my patched dojox.charting.abc module dojo.require("dojox.charting.Chart2D"); // the rest of the file ... </code></pre> <p>Just be careful to avoid circular "require" statements.</p> <p>This technique works very well for backports and minor customizations. If your changes are more extensive than that, you should consider writing your own module.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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