Remove ol.xml.getLocalName workaround for IE
This property is available for IE >= 9
This commit is contained in:
@@ -114,41 +114,6 @@ ol.xml.getAllTextContent_ = function(node, normalizeWhitespace, accumulator) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {Node} node Node.
|
||||
* @private
|
||||
* @return {string} Local name.
|
||||
*/
|
||||
ol.xml.getLocalName_ = function(node) {
|
||||
return node.localName;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {Node} node Node.
|
||||
* @private
|
||||
* @return {string} Local name.
|
||||
*/
|
||||
ol.xml.getLocalNameIE_ = function(node) {
|
||||
var localName = node.localName;
|
||||
if (localName !== undefined) {
|
||||
return localName;
|
||||
}
|
||||
var baseName = node.baseName;
|
||||
goog.asserts.assert(baseName,
|
||||
'Failed to get localName/baseName of node %s', node);
|
||||
return baseName;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {Node} node Node.
|
||||
* @return {string} Local name.
|
||||
*/
|
||||
ol.xml.getLocalName = goog.userAgent.IE ?
|
||||
ol.xml.getLocalNameIE_ : ol.xml.getLocalName_;
|
||||
|
||||
|
||||
/**
|
||||
* @param {?} value Value.
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user