Remove outdated comments re goog.dom

This commit is contained in:
Peter Robins
2016-07-01 08:56:24 +00:00
parent 6d41e87ff5
commit 1775a5aeea
2 changed files with 0 additions and 3 deletions
-2
View File
@@ -1469,8 +1469,6 @@ ol.Map.createOptionsInternal = function(options) {
*/ */
var keyboardEventTarget = null; var keyboardEventTarget = null;
if (options.keyboardEventTarget !== undefined) { if (options.keyboardEventTarget !== undefined) {
// cannot use goog.dom.getElement because its argument cannot be
// of type Document
keyboardEventTarget = typeof options.keyboardEventTarget === 'string' ? keyboardEventTarget = typeof options.keyboardEventTarget === 'string' ?
document.getElementById(options.keyboardEventTarget) : document.getElementById(options.keyboardEventTarget) :
options.keyboardEventTarget; options.keyboardEventTarget;
-1
View File
@@ -50,7 +50,6 @@ ol.xml.getAllTextContent_ = function(node, normalizeWhitespace, accumulator) {
if (node.nodeType == Node.CDATA_SECTION_NODE || if (node.nodeType == Node.CDATA_SECTION_NODE ||
node.nodeType == Node.TEXT_NODE) { node.nodeType == Node.TEXT_NODE) {
if (normalizeWhitespace) { if (normalizeWhitespace) {
// FIXME understand why goog.dom.getTextContent_ uses String here
accumulator.push(String(node.nodeValue).replace(/(\r\n|\r|\n)/g, '')); accumulator.push(String(node.nodeValue).replace(/(\r\n|\r|\n)/g, ''));
} else { } else {
accumulator.push(node.nodeValue); accumulator.push(node.nodeValue);