Remove ol.xml.isDocument workaround for IE

This commit is contained in:
Frederic Junod
2016-03-02 13:23:50 +01:00
parent 544de3b91c
commit 90b4eea1cd

View File

@@ -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