@@ -312,16 +312,13 @@ problems mentioned above, and has the added benefit of making you program's
312312dependencies explicit, making it harder to accidentally make use of
313313some module without stating that you need it.
314314
315- For `require` we need two things. First, we want
316- a function `readFile`,
317- which returns the content of a given file as a string.
318- (A single such function is not present in standard JavaScript,
319- but different JavaScript environments, such as the browser and Node.js,
320- provide their own ways of accessing files.
321- For now, let's just pretend we have this simple function.)
322- Secondly, we need to be able
323- to actually execute this string as JavaScript
324- code.
315+ (((readFile function)))For `require` we need two things. First, we
316+ want a function `readFile`, which returns the content of a given file
317+ as a string. (A single such function is not present in standard
318+ JavaScript, but different JavaScript environments, such as the browser
319+ and Node.js, provide their own ways of accessing files. For now, let's
320+ just pretend we have this simple function.) Secondly, we need to be
321+ able to actually execute this string as JavaScript code.
325322
326323[[eval]]
327324== Evaluating data as code ==
@@ -528,10 +525,11 @@ define([], function() {
528525});
529526----
530527
531- In order to be able to show a minimal implementation of `define`, we will
532- pretend we have a `backgroundReadFile` function, which takes a file
533- name and a function, and will call the function with the content of
534- the file as soon as it has finished loading it. (link:17_http.html#getURL[Chapter 17] will
528+ (((backgroundReadFile function)))In order to be able to show a minimal
529+ implementation of `define`, we will pretend we have a
530+ `backgroundReadFile` function, which takes a file name and a function,
531+ and will call the function with the content of the file as soon as it
532+ has finished loading it. (link:17_http.html#getURL[Chapter 17] will
535533explain how to write that function.)
536534
537535For the purpose of keeping track of modules while they are being
0 commit comments