Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 425695
Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js (-12 / +11 lines)
Lines 1103-1108 Link Here
1103
            _plugins.sort(function(a, b) {
1103
            _plugins.sort(function(a, b) {
1104
                return a._getCreated() < b._getCreated() ? -1 : 1;
1104
                return a._getCreated() < b._getCreated() ? -1 : 1;
1105
            });
1105
            });
1106
            
1107
            if (configuration.parent) {
1108
            	_parent = configuration.parent;
1109
            } else {
1110
	            _parent = document.createElement("div"); //$NON-NLS-0$
1111
	            if (!configuration.visible) {
1112
                    _parent.style.display = "none"; //$NON-NLS-0$
1113
                    _parent.style.visibility = "hidden"; //$NON-NLS-0$
1114
                }
1115
	            document.body.appendChild(_parent);
1116
            }
1106
1117
1107
            if (configuration.plugins) {
1118
            if (configuration.plugins) {
1108
                Object.keys(configuration.plugins).forEach(function(url) {
1119
                Object.keys(configuration.plugins).forEach(function(url) {
Lines 1136-1153 Link Here
1136
            if (_state !== "starting") {
1147
            if (_state !== "starting") {
1137
                return new Deferred().reject("Cannot start framework. Framework is already " + _state + ".");
1148
                return new Deferred().reject("Cannot start framework. Framework is already " + _state + ".");
1138
            }
1149
            }
1139
            
1140
            if (configuration.parent) {
1141
            	_parent = configuration.parent;
1142
            } else {
1143
	            _parent = document.createElement("div"); //$NON-NLS-0$
1144
	            if (!configuration.visible) {
1145
                    _parent.style.display = "none"; //$NON-NLS-0$
1146
                    _parent.style.visibility = "hidden"; //$NON-NLS-0$
1147
                }
1148
	            document.body.appendChild(_parent);
1149
            }
1150
1151
            var deferreds = [];
1150
            var deferreds = [];
1152
            var now = new Date().getTime();
1151
            var now = new Date().getTime();
1153
            _plugins.forEach(function(plugin) {
1152
            _plugins.forEach(function(plugin) {

Return to bug 425695