Skip to content

Commit

Permalink
Doc update to mention using var require instead of window.require for…
Browse files Browse the repository at this point in the history
… IE. Closes requirejs#125.
  • Loading branch information
jrburke committed Oct 4, 2011
1 parent c77d9f3 commit a9eec19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/api.html
Expand Up @@ -619,6 +619,9 @@ <h2>
&lt;script type="text/javascript" src="scripts/require.js"&gt;&lt;/script&gt;
</code></pre>

<p><b>Note:</b> It is best to use <code>var require = {}</code> and do not use
<code>window.require = {}</code>, it will not behave correctly in IE.</p>

<p>Supported configuration options:</p>

<p id="config-baseUrl"><strong>baseUrl</strong>: the root path to use for all module lookups. So in the above example, "my/module"'s script tag will have a src="/another/path/my/module.js". baseUrl is <strong>not</strong> used when loading plain .js files, those strings are used as-is, so a.js and b.js will be loaded from the same directory as the HTML page that contains the above snippet.</p>
Expand Down
10 changes: 6 additions & 4 deletions tasks.txt
@@ -1,13 +1,15 @@
Release Notes
-------------------
- removed module.setExports support.
- removed require.def support
- removed require.ready, domReady plugin.
- mention almond release?



Next release
--------------

- Update uglifyjs for the release!

- Doc: add info about overriding requirejs.onError.

- mix of types a problem? https://github.com/jrburke/require-cs/issues/5

- almond release: look at splice change
Expand Down

0 comments on commit a9eec19

Please sign in to comment.