[Pkg-osm-commits] [SCM] openlayers branch, master, updated. debian/2.11+ds1-1-2-gb46ea35

2011-10-09 Thread Jonas Smedegaard
The following commit has been merged in the master branch:
commit b46ea35ad7029199e539cd64af42bbfc8089b190
Author: Jonas Smedegaard 
Date:   Sun Oct 9 12:52:58 2011 +0200

Update changelog.

diff --git a/debian/changelog b/debian/changelog
index 01d00d5..3453b2a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+openlayers (2.11+ds1-2) UNRELEASED; urgency=low
+
+  * Add patch to improve GeoRSS parsing.
+
+ -- Jonas Smedegaard   Sun, 09 Oct 2011 12:52:16 +0200
+
 openlayers (2.11+ds1-1) unstable; urgency=low
 
   * New upstream release

-- 
JavaScript library for displaying map data in web browsers

___
Pkg-osm-commits mailing list
Pkg-osm-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-osm-commits


[Pkg-osm-commits] [SCM] openlayers branch, master, updated. debian/2.11+ds1-1-2-gb46ea35

2011-10-09 Thread Jonas Smedegaard
The following commit has been merged in the master branch:
commit ad2585af9a8fcbe909c1e33ee8c1cab4bead3b16
Author: Jonas Smedegaard 
Date:   Sun Oct 9 12:52:00 2011 +0200

Add patch to improve GeoRSS parsing.

diff --git a/debian/patches/improved-GeoRSS-parsing.patch 
b/debian/patches/improved-GeoRSS-parsing.patch
new file mode 100644
index 000..909709f
--- /dev/null
+++ b/debian/patches/improved-GeoRSS-parsing.patch
@@ -0,0 +1,19 @@
+Description: Improve GeoRSS parsing
+ Fix gracefully handle some GeoRSS on IE8 and older.
+ Example: 
+Author: Jonas Smedegaard 
+Last-Update: 2011-10-09
+
+--- a/lib/OpenLayers/Layer/GeoRSS.js
 b/lib/OpenLayers/Layer/GeoRSS.js
+@@ -145,7 +145,9 @@
+ name = doc.getElementsByTagNameNS('*', 
'title')[0].firstChild.nodeValue;
+ }
+ catch (e) {
+-name = 
doc.getElementsByTagName('title')[0].firstChild.nodeValue;
++try {
++name = 
doc.getElementsByTagName('title')[0].firstChild.nodeValue;
++catch (e) {}
+ }
+ if (name) {
+ this.setName(name);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 000..3c9066c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+improved-GeoRSS-parsing.patch

-- 
JavaScript library for displaying map data in web browsers

___
Pkg-osm-commits mailing list
Pkg-osm-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-osm-commits