You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by bb...@apache.org on 2006/07/05 23:09:53 UTC
svn commit: r419377 -
/incubator/xap/trunk/WebContent/examples/google/EventMco.js
Author: bbuffone
Date: Wed Jul 5 16:09:52 2006
New Revision: 419377
URL: http://svn.apache.org/viewvc?rev=419377&view=rev
Log:
added namespace to the createElement call.
This change is required because of more formal namespace handling with tags and bridges.
Modified:
incubator/xap/trunk/WebContent/examples/google/EventMco.js
Modified: incubator/xap/trunk/WebContent/examples/google/EventMco.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/google/EventMco.js?rev=419377&r1=419376&r2=419377&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/google/EventMco.js (original)
+++ incubator/xap/trunk/WebContent/examples/google/EventMco.js Wed Jul 5 16:09:52 2006
@@ -129,12 +129,12 @@
*
*/
EventMco.prototype.createAddMarker = function (uiDoc, googleMapMarkers, latitude, longitude, infoText, icon){
- var markerElement = uiDoc.createElement("marker");
+ var markerElement = uiDoc.createElement("marker", "google", "http://www.google.com");
markerElement.setAttribute("latitude", latitude);
markerElement.setAttribute("longitude", longitude);
markerElement.setAttribute("infoText", infoText);
markerElement.setAttribute("icon", icon);
- googleMapMarkers.appendChild(markerElement);
+ googleMapMarkers.appendChild(markerElement);
}
/**