namespaceURI can be null, but not undefined

This commit is contained in:
ahocevar
2014-02-24 13:55:20 +01:00
parent 7b56abdac7
commit c1a966bb6f

View File

@@ -59,7 +59,7 @@ ol.xml.createElementNS_ = function(namespaceURI, qualifiedName) {
* @private
*/
ol.xml.createElementNSActiveX_ = function(namespaceURI, qualifiedName) {
if (!goog.isDef(namespaceURI)) {
if (goog.isNull(namespaceURI)) {
namespaceURI = '';
}
return ol.xml.DOCUMENT.createNode(1, qualifiedName, namespaceURI);