Remove reliance on loadDevEditor

This commit is contained in:
Alex Dima 2016-08-24 11:34:53 +02:00
parent 745893d211
commit 17faf6a3b7
4 changed files with 11 additions and 16 deletions

View file

@ -42,10 +42,11 @@
var RESOLVED_CORE = new Component('editor', 'vs', METADATA.CORE.paths);
self.RESOLVED_CORE_PATH = RESOLVED_CORE.getResolvedPath();
var RESOLVED_PLUGINS = METADATA.PLUGINS.map(function(plugin) {
return new Component(plugin.name, plugin.modulePrefix, plugin.paths, plugin.contrib);
});
self.METADATA = null;
METADATA = null;
function loadScript(path, callback) {
@ -58,14 +59,6 @@
}
self.loadDevEditor = function() {
return (getQueryStringValue('editor') === 'dev');
}
function getQueryStringValue (key) {
return unescape(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + escape(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));
}
self.loadEditor = function(callback, PATH_PREFIX) {
PATH_PREFIX = PATH_PREFIX || '';