diff --git a/src/ol/map.js b/src/ol/map.js index f09b2e6548..e07bd59e80 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -1469,8 +1469,6 @@ ol.Map.createOptionsInternal = function(options) { */ var keyboardEventTarget = null; if (options.keyboardEventTarget !== undefined) { - // cannot use goog.dom.getElement because its argument cannot be - // of type Document keyboardEventTarget = typeof options.keyboardEventTarget === 'string' ? document.getElementById(options.keyboardEventTarget) : options.keyboardEventTarget; diff --git a/src/ol/xml.js b/src/ol/xml.js index 35d158acba..66bf02c7c9 100644 --- a/src/ol/xml.js +++ b/src/ol/xml.js @@ -50,7 +50,6 @@ ol.xml.getAllTextContent_ = function(node, normalizeWhitespace, accumulator) { if (node.nodeType == Node.CDATA_SECTION_NODE || node.nodeType == Node.TEXT_NODE) { if (normalizeWhitespace) { - // FIXME understand why goog.dom.getTextContent_ uses String here accumulator.push(String(node.nodeValue).replace(/(\r\n|\r|\n)/g, '')); } else { accumulator.push(node.nodeValue);