Remove ol.xml.isDocument workaround for IE
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user