From 036dee55a9e147b5f69f7ae85c705e3f6bab1c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 10 Oct 2013 09:26:37 +0200 Subject: [PATCH] Revert "Always set CLOSURE_NO_DEPS to true" This reverts commit aa5a571ab14ec88e8395499a4afd68eab1de62b4. --- bin/loader_hosted_examples.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bin/loader_hosted_examples.js b/bin/loader_hosted_examples.js index 1389d597e3..19c5d2ae04 100644 --- a/bin/loader_hosted_examples.js +++ b/bin/loader_hosted_examples.js @@ -65,19 +65,12 @@ } } - // CLOSURE_NO_DEPS has an effect in "raw" and "whitespace" modes only (i.e. - // when COMPILED is false). In "raw" mode we use our own deps file - // (ol-deps.js), so we set CLOSURE_NO_DEPS to true to prevent Google - // Library's base.js script to load deps.js. In "whitespace" mode - // no deps file is needed at all, yet base.js will attempt to load deps.js - // if CLOSURE_NO_DEPS is not set to true. - window.CLOSURE_NO_DEPS = true; - var scriptId = encodeURIComponent(scriptParams.id); document.write(''); if (mode != 'raw') { document.write(''); } else { + window.CLOSURE_NO_DEPS = true; // we've got our own deps file document.write(''); document.write(''); document.write('');