Skip to content

Commit a9eec19

Browse files
committed
Doc update to mention using var require instead of window.require for IE. Closes requirejs#125.
1 parent c77d9f3 commit a9eec19

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

docs/api.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,9 @@ <h2>
619619
&lt;script type="text/javascript" src="scripts/require.js"&gt;&lt;/script&gt;
620620
</code></pre>
621621

622+
<p><b>Note:</b> It is best to use <code>var require = {}</code> and do not use
623+
<code>window.require = {}</code>, it will not behave correctly in IE.</p>
624+
622625
<p>Supported configuration options:</p>
623626

624627
<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>

tasks.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
Release Notes
22
-------------------
3-
- removed module.setExports support.
4-
- removed require.def support
5-
- removed require.ready, domReady plugin.
6-
- mention almond release?
3+
4+
75

86
Next release
97
--------------
108

9+
- Update uglifyjs for the release!
10+
11+
- Doc: add info about overriding requirejs.onError.
12+
1113
- mix of types a problem? https://github.com/jrburke/require-cs/issues/5
1214

1315
- almond release: look at splice change

0 commit comments

Comments
 (0)