Skip to content

Instantly share code, notes, and snippets.

@Gozala
Created October 27, 2009 20:30
Show Gist options
  • Save Gozala/219926 to your computer and use it in GitHub Desktop.
Save Gozala/219926 to your computer and use it in GitHub Desktop.
From eb1ef52583c673abc10aed8856bbc2d754acca69 Mon Sep 17 00:00:00 2001
From: Irakli Gozalishvili <rfobic@gmail.com>
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