summaryrefslogtreecommitdiffhomepage
path: root/amd.html.markdown
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2014-10-17 21:11:03 -0500
committerLevi Bostian <levi.bostian@gmail.com>2014-10-17 21:11:03 -0500
commit115f35287fc54633cdcb0d0ba8f2fef1b9cc8921 (patch)
tree62e1176d31f48433776b2edaa859995d40fbf253 /amd.html.markdown
parent57b5eb1bac3ccb1afd8f6359de6457318b91ffaa (diff)
parentccdd47267b28104a74352151a0424bd6f62bd390 (diff)
Merge pull request #809 from levibostian/little-fixes-after-merging
Little fixes after merging
Diffstat (limited to 'amd.html.markdown')
-rw-r--r--amd.html.markdown8
1 files changed, 6 insertions, 2 deletions
diff --git a/amd.html.markdown b/amd.html.markdown
index 3500fa58..36210d03 100644
--- a/amd.html.markdown
+++ b/amd.html.markdown
@@ -8,7 +8,11 @@ filename: learnamd.js
## Getting Started with AMD
-The **Asynchronous Module Definition** API specifies a mechanism for defining JavaScript modules such that the module and its dependencies can be asynchronously loaded. This is particularly well suited for the browser environment where synchronous loading of modules incurs performance, usability, debugging, and cross-domain access problems.
+The **Asynchronous Module Definition** API specifies a mechanism for defining
+JavaScript modules such that the module and its dependencies can be asynchronously
+loaded. This is particularly well suited for the browser environment where
+synchronous loading of modules incurs performance, usability, debugging, and
+cross-domain access problems.
### Basic concept
```javascript
@@ -55,7 +59,7 @@ require(['loudmouth'], function(loudmouth){
loudmouth();
});
-// To make this tutorial running code, let's implement a very basic
+// To make this tutorial run code, let's implement a very basic
// (non-asynchronous) version of AMD right here on the spot:
function define(name, deps, factory){
// notice how modules without dependencies are handled