From 24e9d4e4b2bda83f40e8cde106956fabdda145e4 Mon Sep 17 00:00:00 2001 From: guybedford Date: Sat, 16 May 2015 13:44:26 +0200 Subject: [PATCH] share baseURI from module loader wrapper --- lib/core.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/core.js b/lib/core.js index 7ff3630c..edc1af16 100644 --- a/lib/core.js +++ b/lib/core.js @@ -2,7 +2,6 @@ var absURLRegEx = /^[^\/]+:\/\//; // caches baseURL URL object // also allows baseURL to be relative to the baseURI -var baseURI; function getAbsBaseURL() { var baseURL = this.baseURL; return baseURLCache[baseURL] = baseURLCache[baseURL] || new URL(baseURL + (baseURL[baseURL.length - 1] != '/' ? '/' : ''), baseURI); @@ -14,9 +13,6 @@ hookConstructor(function(constructor) { return function() { constructor.call(this); - // by default ModuleLoader sets this.baseURL to baseURI - baseURI = this.baseURL; - // support the empty module, as a concept this.set('@empty', this.newModule({})); };