Browse Source

Removing some punctuation in the recommended snippet, as suggested by Axel Rauschmayer

jrburke 12 years ago
parent
commit
b45e642134
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      tests/basic/a.js

+ 1 - 1
README.md

@@ -19,7 +19,7 @@ Then run `npm install` to get amdefine into your project.
 **2)** At the top of each module that uses define(), place this code:
 
 ```javascript
-    if (typeof define !== 'function') { var define = (require('amdefine'))(module); }
+    if (typeof define !== 'function') { var define = require('amdefine')(module) }
 ```
 
 **Only use this snippet** for loading amdefine. If you preserve the basic structure,

+ 1 - 1
tests/basic/a.js

@@ -1,5 +1,5 @@
 
-if (typeof define !== 'function') { var define = (require('../../amdefine'))(module); }
+if (typeof define !== 'function') { var define = require('../../amdefine')(module) }
 
 define(['./b', './sub/nested/d'], function (b, d) {
     return {