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 382124
Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.editor/web/orion/textview/textView.js (-1 / +11 lines)
Lines 4416-4422 Link Here
4416
				handlers.push({target: topNode, type: "drop", handler: function(e) { return self._handleDrop(e);}}); //$NON-NLS-0$
4416
				handlers.push({target: topNode, type: "drop", handler: function(e) { return self._handleDrop(e);}}); //$NON-NLS-0$
4417
				handlers.push({target: this._clientDiv, type: isFirefox ? "DOMMouseScroll" : "mousewheel", handler: function(e) { return self._handleMouseWheel(e); }}); //$NON-NLS-1$ //$NON-NLS-0$
4417
				handlers.push({target: this._clientDiv, type: isFirefox ? "DOMMouseScroll" : "mousewheel", handler: function(e) { return self._handleMouseWheel(e); }}); //$NON-NLS-1$ //$NON-NLS-0$
4418
				if (isFirefox && !isWindows) {
4418
				if (isFirefox && !isWindows) {
4419
					handlers.push({target: this._clientDiv, type: "DOMCharacterDataModified", handler: function (e) { return self._handleDataModified(e); }}); //$NON-NLS-0$
4419
					var MutationObserver = window.MutationObserver || window.MozMutationObserver;
4420
					if (MutationObserver) {
4421
						this._mutationObserver = new MutationObserver(function(mutations) { self._handleDataModified(mutations); });
4422
						this._mutationObserver.observe(clientDiv, {subtree: true, characterData: true});
4423
					} else {
4424
						handlers.push({target: this._clientDiv, type: "DOMCharacterDataModified", handler: function (e) { return self._handleDataModified(e); }}); //$NON-NLS-0$
4425
					}
4420
				}
4426
				}
4421
				if (this._overlayDiv) {
4427
				if (this._overlayDiv) {
4422
					handlers.push({target: this._overlayDiv, type: "mousedown", handler: function(e) { return self._handleMouseDown(e);}}); //$NON-NLS-0$
4428
					handlers.push({target: this._overlayDiv, type: "mousedown", handler: function(e) { return self._handleMouseDown(e);}}); //$NON-NLS-0$
Lines 5264-5269 Link Here
5264
				removeHandler(h.target, h.type, h.handler);
5270
				removeHandler(h.target, h.type, h.handler);
5265
			}
5271
			}
5266
			this._handlers = null;
5272
			this._handlers = null;
5273
			if (this._mutationObserver) {
5274
				this._mutationObserver.disconnect();
5275
				this._mutationObserver = null;
5276
			}
5267
		},
5277
		},
5268
		_updateDOMSelection: function () {
5278
		_updateDOMSelection: function () {
5269
			if (this._ignoreDOMSelection) { return; }
5279
			if (this._ignoreDOMSelection) { return; }

Return to bug 382124