Skip to content

Commit d72e722

Browse files
committed
Remove unnecessary caveat in plugins docs about the require used in load.
1 parent f45a0ad commit d72e722

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

docs/plugins.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h3>
8686

8787
<ul>
8888
<li><b>name</b>: String. The name of the resource to load. This is the part after the ! separator in the name. So, if a module asks for 'foo!something/for/foo', the foo module's load function will receive 'something/for/foo' as the name.</li>
89-
<li><b>parentRequire</b>: Function. A local "require" function to use to load other modules. It is suggested that you <b>do not</b> use the name "require" for this argument name to avoid any possible undesired behavior with the static analysis done by the optimizer when it looks for require() calls. The text! and i18n! plugins normally use "req" for this argument. This require function has some utilities on it:
89+
<li><b>parentRequire</b>: Function. A local "require" function to use to load other modules. This require function has some utilities on it:
9090
<ul>
9191
<li><b>parentRequire.toUrl(moduleResource)</b>:where moduleResource is a module name plus an extension. For instance "view/templates/main.html". It will return a full path to the resource, obeying any RequireJS configuration.</li>
9292
<li><b>parentRequire.isDefined(moduleName)</b>: Returns true if the module has already been loaded and defined.</li>

tasks.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,29 @@ Release Notes
99
Next release
1010
--------------
1111

12+
- text plugins after a build load xdomain?
13+
1214
- relative modules IDs?
1315
- excludeShallow not excluding files loaded with the text plugin: email thread. Exclusions.
1416

15-
- text plugins after a build load xdomain?
17+
- https://github.com/jrburke/requirejs/issues/104: define as a special dependency?
18+
- domReady plugin
19+
20+
- empty: protocol support for build profiles?
21+
1622
- Why can't plugins have dependencies? It is because the dependency is not fully evaluated.
1723
Maybe rethink it, there have been some cases where creating a plugin that uses the
1824
text plugin would be useful. However, would that mean the optimized result would include
19-
the string twice in the output?
25+
the string twice in the output? Well for the text plugin, could allow other plugins to
26+
indicate "do not inline this dependency" to help with that.
2027
- replacement for modify that intercepts callbacks, holds off until another module loads them?
2128
- A way to show dependency graph too?
22-
- Set up official IE9 release VM
2329
- localeList for i18n.js support, for better Dojo support.
2430
- Minify the require.js files with UglifyJS.
31+
32+
Docs:
33+
- http://requirejs.org/docs/api.html#jsfiles make the "plain script tag rules"
34+
more of a bulleted list to call them out.
2535
- Pointer to motivations behind current thing, reason for dependencies.
2636

2737
- https://github.com/jrburke/requirejs/pull/71: process by 2/21

0 commit comments

Comments
 (0)