From aa5a571ab14ec88e8395499a4afd68eab1de62b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 30 Apr 2013 09:25:09 +0200 Subject: [PATCH] Always set CLOSURE_NO_DEPS to true --- bin/loader_hosted_examples.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/loader_hosted_examples.js b/bin/loader_hosted_examples.js index 19c5d2ae04..1389d597e3 100644 --- a/bin/loader_hosted_examples.js +++ b/bin/loader_hosted_examples.js @@ -65,12 +65,19 @@ } } + // 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('');