From cad5fc3f12e2bb57c3c5d100079c0afa139442c6 Mon Sep 17 00:00:00 2001 From: Bruno Jouhier Date: Sat, 3 Dec 2011 16:47:48 +0100 Subject: [PATCH] fixed formatting glitch in API.md --- API.md | 1 + lib/util/flows--fibers.js | 2 ++ lib/util/flows.js | 2 ++ lib/util/flows_.js | 2 ++ 4 files changed, 7 insertions(+) diff --git a/API.md b/API.md index d2c886f1..b8c222c0 100644 --- a/API.md +++ b/API.md @@ -1,3 +1,4 @@ + # streamline/lib/callbacks/transform Streamline's transformation engine diff --git a/lib/util/flows--fibers.js b/lib/util/flows--fibers.js index c71e23d9..7bff839b 100644 --- a/lib/util/flows--fibers.js +++ b/lib/util/flows--fibers.js @@ -306,6 +306,8 @@ /// /// ## Miscellaneous /// + /// Utility functions: + /// /// * `flows.nextTick(_)` /// `nextTick` function for both browser and server. /// Aliased to `process.nextTick` on the server side. diff --git a/lib/util/flows.js b/lib/util/flows.js index a2366451..bc08edc1 100644 --- a/lib/util/flows.js +++ b/lib/util/flows.js @@ -309,6 +309,8 @@ + + exports.nextTick = (((typeof process === "object") && (typeof process.nextTick === "function")) ? process.nextTick : function(callback) { setTimeout(function() { callback(); }, 0); }); diff --git a/lib/util/flows_.js b/lib/util/flows_.js index bf316899..d617d300 100644 --- a/lib/util/flows_.js +++ b/lib/util/flows_.js @@ -306,6 +306,8 @@ /// /// ## Miscellaneous /// + /// Utility functions: + /// /// * `flows.nextTick(_)` /// `nextTick` function for both browser and server. /// Aliased to `process.nextTick` on the server side.