From 90b4eea1cddeaa21df5f97bb929b9905b8abfee2 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 2 Mar 2016 13:23:50 +0100 Subject: [PATCH] Remove ol.xml.isDocument workaround for IE --- src/ol/xml.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/ol/xml.js b/src/ol/xml.js index 7549ff7bad..160bac74f5 100644 --- a/src/ol/xml.js +++ b/src/ol/xml.js @@ -91,32 +91,13 @@ ol.xml.getAllTextContent_ = function(node, normalizeWhitespace, accumulator) { /** * @param {?} value Value. - * @private * @return {boolean} Is document. */ -ol.xml.isDocument_ = function(value) { +ol.xml.isDocument = function(value) { return value instanceof Document; }; -/** - * @param {?} value Value. - * @private - * @return {boolean} Is document. - */ -ol.xml.isDocumentIE_ = function(value) { - return goog.isObject(value) && value.nodeType == goog.dom.NodeType.DOCUMENT; -}; - - -/** - * @param {?} value Value. - * @return {boolean} Is document. - */ -ol.xml.isDocument = goog.userAgent.IE ? - ol.xml.isDocumentIE_ : ol.xml.isDocument_; - - /** * @param {?} value Value. * @private