Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions
+12 -11
View File
@@ -1,7 +1,7 @@
goog.provide('ol.format.XML');
goog.require('ol.xml');
/**
* @module ol/format/XML
*/
import _ol_xml_ from '../xml.js';
/**
* @classdesc
@@ -11,7 +11,7 @@ goog.require('ol.xml');
* @abstract
* @struct
*/
ol.format.XML = function() {
var _ol_format_XML_ = function() {
};
@@ -19,13 +19,13 @@ ol.format.XML = function() {
* @param {Document|Node|string} source Source.
* @return {Object} The parsed result.
*/
ol.format.XML.prototype.read = function(source) {
if (ol.xml.isDocument(source)) {
_ol_format_XML_.prototype.read = function(source) {
if (_ol_xml_.isDocument(source)) {
return this.readFromDocument(/** @type {Document} */ (source));
} else if (ol.xml.isNode(source)) {
} else if (_ol_xml_.isNode(source)) {
return this.readFromNode(/** @type {Node} */ (source));
} else if (typeof source === 'string') {
var doc = ol.xml.parse(source);
var doc = _ol_xml_.parse(source);
return this.readFromDocument(doc);
} else {
return null;
@@ -38,7 +38,7 @@ ol.format.XML.prototype.read = function(source) {
* @param {Document} doc Document.
* @return {Object} Object
*/
ol.format.XML.prototype.readFromDocument = function(doc) {};
_ol_format_XML_.prototype.readFromDocument = function(doc) {};
/**
@@ -46,4 +46,5 @@ ol.format.XML.prototype.readFromDocument = function(doc) {};
* @param {Node} node Node.
* @return {Object} Object
*/
ol.format.XML.prototype.readFromNode = function(node) {};
_ol_format_XML_.prototype.readFromNode = function(node) {};
export default _ol_format_XML_;