Remove goog.isNull in xml class
This commit is contained in:
+4
-4
@@ -57,7 +57,7 @@ ol.xml.createElementNS_ = function(namespaceURI, qualifiedName) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.xml.createElementNSActiveX_ = function(namespaceURI, qualifiedName) {
|
ol.xml.createElementNSActiveX_ = function(namespaceURI, qualifiedName) {
|
||||||
if (goog.isNull(namespaceURI)) {
|
if (!namespaceURI) {
|
||||||
namespaceURI = '';
|
namespaceURI = '';
|
||||||
}
|
}
|
||||||
return ol.xml.DOCUMENT.createNode(1, qualifiedName, namespaceURI);
|
return ol.xml.DOCUMENT.createNode(1, qualifiedName, namespaceURI);
|
||||||
@@ -107,7 +107,7 @@ ol.xml.getAllTextContent_ = function(node, normalizeWhitespace, accumulator) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var n;
|
var n;
|
||||||
for (n = node.firstChild; !goog.isNull(n); n = n.nextSibling) {
|
for (n = node.firstChild; n; n = n.nextSibling) {
|
||||||
ol.xml.getAllTextContent_(n, normalizeWhitespace, accumulator);
|
ol.xml.getAllTextContent_(n, normalizeWhitespace, accumulator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -314,7 +314,7 @@ ol.xml.setAttributeNS_ = function(node, namespaceURI, name, value) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.xml.setAttributeNSActiveX_ = function(node, namespaceURI, name, value) {
|
ol.xml.setAttributeNSActiveX_ = function(node, namespaceURI, name, value) {
|
||||||
if (!goog.isNull(namespaceURI)) {
|
if (namespaceURI) {
|
||||||
var attribute = node.ownerDocument.createNode(2, name, namespaceURI);
|
var attribute = node.ownerDocument.createNode(2, name, namespaceURI);
|
||||||
attribute.nodeValue = value;
|
attribute.nodeValue = value;
|
||||||
node.setAttributeNode(attribute);
|
node.setAttributeNode(attribute);
|
||||||
@@ -656,7 +656,7 @@ ol.xml.makeStructureNS = function(namespaceURIs, structure, opt_structureNS) {
|
|||||||
*/
|
*/
|
||||||
ol.xml.parseNode = function(parsersNS, node, objectStack, opt_this) {
|
ol.xml.parseNode = function(parsersNS, node, objectStack, opt_this) {
|
||||||
var n;
|
var n;
|
||||||
for (n = node.firstElementChild; !goog.isNull(n); n = n.nextElementSibling) {
|
for (n = node.firstElementChild; n; n = n.nextElementSibling) {
|
||||||
var parsers = parsersNS[n.namespaceURI];
|
var parsers = parsersNS[n.namespaceURI];
|
||||||
if (parsers !== undefined) {
|
if (parsers !== undefined) {
|
||||||
var parser = parsers[n.localName];
|
var parser = parsers[n.localName];
|
||||||
|
|||||||
Reference in New Issue
Block a user