Created
October 27, 2009 20:30
-
-
Save Gozala/219926 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From eb1ef52583c673abc10aed8856bbc2d754acca69 Mon Sep 17 00:00:00 2001 | |
From: Irakli Gozalishvili <[email protected]> | |
Date: Tue, 27 Oct 2009 21:29:36 +0100 | |
Subject: [PATCH] meta docs | |
--- | |
lib/sandbox.js | 3 +++ | |
1 files changed, 3 insertions(+), 0 deletions(-) | |
diff --git a/lib/sandbox.js b/lib/sandbox.js | |
index eb67a4c..1b8e1f5 100644 | |
--- a/lib/sandbox.js | |
+++ b/lib/sandbox.js | |
@@ -248,6 +248,9 @@ exports.Sandbox = function (options) { | |
'path': factory.path | |
}; | |
factory(require, exports, module, subsystem, subprint); | |
+ if (factory.doc) exports.doc = module.doc = function doc() { | |
+ return factory.doc(); | |
+ } | |
if (sandbox.debug) { | |
// check for new globals | |
-- | |
1.6.1.3+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment