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