[OpenLayers-Commits] r11427 - sandbox/cmoullet/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Feb 24 11:03:19 EST 2011


Author: cmoullet
Date: 2011-02-24 08:03:19 -0800 (Thu, 24 Feb 2011)
New Revision: 11427

Modified:
   sandbox/cmoullet/openlayers/examples/browser.js
Log:
Fix touches item

Modified: sandbox/cmoullet/openlayers/examples/browser.js
===================================================================
--- sandbox/cmoullet/openlayers/examples/browser.js	2011-02-24 15:57:52 UTC (rev 11426)
+++ sandbox/cmoullet/openlayers/examples/browser.js	2011-02-24 16:03:19 UTC (rev 11427)
@@ -193,8 +193,8 @@
     if (document.getElementById("gesturestartID").checked) {
         var box = document.getElementById("box");
         var result = inspect(e);
-        for (var i = 0; i < e.touches.length; i++) {
-            result = result + inspect(e.touches[i]);       
+        for (var i = 0; i < e.touches.item.length; i++) {
+            result = result + inspect(e.touches.item[i]);       
         }
         log(e.type, result);
         //logDetails(inspect(e.touches.item(0)));



More information about the Commits mailing list