summaryrefslogtreecommitdiff
path: root/lib/async.js
diff options
context:
space:
mode:
authorAlexander Early <aearly@fluid.com>2015-05-25 14:58:27 -0700
committerAlexander Early <aearly@fluid.com>2015-05-25 14:58:27 -0700
commitaba3e0c1af87f0f89bbddb6d3a2c56ffb9176c9b (patch)
treeea5ce5d98078ccb51da70310b10dcc2caeaaf026 /lib/async.js
parent219b4fbc93cb3c8c0a1bbdd7e58028d6087d1c73 (diff)
downloadasync-aba3e0c1af87f0f89bbddb6d3a2c56ffb9176c9b.tar.gz
docs for ensureAsync
Diffstat (limited to 'lib/async.js')
-rw-r--r--lib/async.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/async.js b/lib/async.js
index 86c810a..06ede14 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -1267,21 +1267,6 @@
next();
};
- // Node.js
- if (typeof module !== 'undefined' && module.exports) {
- module.exports = async;
- }
- // AMD / RequireJS
- else if (typeof define !== 'undefined' && define.amd) {
- define([], function () {
- return async;
- });
- }
- // included directly via <script> tag
- else {
- root.async = async;
- }
-
function ensureAsync(fn) {
return function (/*...args, callback*/) {
var args = _baseSlice(arguments);
@@ -1304,4 +1289,19 @@
async.ensureAsync = ensureAsync;
+ // Node.js
+ if (typeof module !== 'undefined' && module.exports) {
+ module.exports = async;
+ }
+ // AMD / RequireJS
+ else if (typeof define !== 'undefined' && define.amd) {
+ define([], function () {
+ return async;
+ });
+ }
+ // included directly via <script> tag
+ else {
+ root.async = async;
+ }
+
}());