[OpenLayers-Commits] r12437 - addins/timedpointtrack/trunk/lib
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Nov 17 02:48:57 EST 2011
Author: openlayersgit
Date: 2011-11-16 23:48:56 -0800 (Wed, 16 Nov 2011)
New Revision: 12437
Modified:
addins/timedpointtrack/trunk/lib/TimedPointTrack.js
Log:
Use private _getChildValue method like in Format.GeoRSS
Modified: addins/timedpointtrack/trunk/lib/TimedPointTrack.js
===================================================================
--- addins/timedpointtrack/trunk/lib/TimedPointTrack.js 2011-11-03 18:58:50 UTC (rev 12436)
+++ addins/timedpointtrack/trunk/lib/TimedPointTrack.js 2011-11-17 07:48:56 UTC (rev 12437)
@@ -196,20 +196,20 @@
var geometry = this.createGeometryFromItem(item);
/* Provide defaults for title and description */
- var title = this.getChildValue(item, "*", "title", this.featureTitle);
+ var title = this._getChildValue(item, "*", "title", this.featureTitle);
/* First try RSS descriptions, then Atom summaries */
- var description = this.getChildValue(
+ var description = this._getChildValue(
item, "*", "description",
- this.getChildValue(item, "*", "content", this.featureDescription)
+ this._getChildValue(item, "*", "content", this.featureDescription)
);
- var pubDate = this.getChildValue(item, "*", "pubDate") ||
- this.getChildValue(item, "*", "updated");
+ var pubDate = this._getChildValue(item, "*", "pubDate") ||
+ this._getChildValue(item, "*", "updated");
/* If no link URL is found in the first child node, try the
href attribute */
- var link = this.getChildValue(item, "*", "link");
+ var link = this._getChildValue(item, "*", "link");
if(!link) {
try {
link = this.getElementsByTagNameNS(item, "*", "link")[0].getAttribute("href");
@@ -218,7 +218,7 @@
}
}
- var id = this.getChildValue(item, "*", "id", null);
+ var id = this._getChildValue(item, "*", "id", null);
var data = {
"title": title,
More information about the Commits
mailing list