Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
doc nodules.ensure
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Oct 15, 2010
1 parent 8471f95 commit 4305837
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Expand Up @@ -249,7 +249,8 @@ More unit tests

nodules exports
============

> nodules = require ('../nodules/lib/nodules');
{mappings: [ defaultPath: '' ]
, forBrowser: [Function]
, forEngine: [Function]
Expand Down Expand Up @@ -278,7 +279,14 @@ nodules exports

#ensure: [Function]#

http://wiki.commonjs.org/wiki/Modules/Async/A
require.ensure(['module1','module2'],function cb(require){
var module1 = require('module1'),
module1 = require('module1');
}

loads array of modules async and callsback when they are ready.
see http://wiki.commonjs.org/wiki/Modules/Async/A

, runAsMain: [Function]
, usingEngine: 'node'
, useLocal: [Function]
Expand Down

0 comments on commit 4305837

Please sign in to comment.