| | 428 | configuration: |
| | 429 | -------------- |
| | 430 | |
| | 431 | Earlier versions of Dojo allowed the djConfig variable to provide a |
| | 432 | "allowQueryConfig" boolean flag in order to take debugging information from an |
| | 433 | easily modified location. This, however, required explicit permission from the |
| | 434 | djConfig flag which itself required its own <script> block. This was onerous |
| | 435 | and rarely used. It is also being replaced in 0.9 with a simpler system. |
| | 436 | |
| | 437 | Instead of requiring at *least* one extra <script> tag to configure Dojo, the |
| | 438 | system now supports a djConfig attribute on the <script> element which is used |
| | 439 | to include Dojo into the page. The value of this attribute much be well-formed |
| | 440 | JavaScript object literal syntax. Previously, putting Dojo into debugging mode |
| | 441 | required syntax such as this: |
| | 442 | |
| | 443 | <script type="text/javascript"> |
| | 444 | djConfig = { |
| | 445 | isDebug: true, |
| | 446 | useXDomain: true |
| | 447 | }; |
| | 448 | </script> |
| | 449 | <script type="text/javascript" src="/path/to/dojo.js"></script> |
| | 450 | |
| | 451 | Could now be written as: |
| | 452 | |
| | 453 | <script type="text/javascript" |
| | 454 | djConfig="isDebug: true, useXDomain: true" |
| | 455 | src="/path/to/dojo.js"></script> |
| | 456 | |
| | 457 | Note that the prior syntax is still available, but is not likely to be |
| | 458 | advantageous since the new variation is smaller and easier to use. |