From 64ae1c433f5778a67b54b89b6511b01c4acdbf1a Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Mon, 30 Jan 2012 21:49:04 -0800 Subject: [PATCH] Allow modules to be fetched remotely. --- static/js/ace.js | 2 ++ static/pad.html | 2 ++ static/timeslider.html | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/static/js/ace.js b/static/js/ace.js index 3fdfa05ec..049309101 100644 --- a/static/js/ace.js +++ b/static/js/ace.js @@ -218,9 +218,11 @@ function Ace2Editor() } function pushRequireScriptTo(buffer) { var KERNEL_SOURCE = '../static/js/require-kernel.js'; + var KERNEL_BOOT = 'require.setRootURI("../minified/");\nrequire.setGlobalKeyPath("require");' if (Ace2Editor.EMBEDED && Ace2Editor.EMBEDED[KERNEL_SOURCE]) { buffer.push('