[OpenLayers-Commits] r12152 - trunk/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Jul 4 16:37:55 EDT 2011


Author: ahocevar
Date: 2011-07-04 13:37:54 -0700 (Mon, 04 Jul 2011)
New Revision: 12152

Modified:
   trunk/openlayers/examples/modify-feature.html
Log:
don't use Firebug Lite, as it seems to cause issues in IE9. Thanks jorix for the hint (closes #3374)

Modified: trunk/openlayers/examples/modify-feature.html
===================================================================
--- trunk/openlayers/examples/modify-feature.html	2011-07-04 20:34:47 UTC (rev 12151)
+++ trunk/openlayers/examples/modify-feature.html	2011-07-04 20:37:54 UTC (rev 12152)
@@ -18,7 +18,6 @@
             list-style: none;
         }
     </style>
-    <script src="../lib/Firebug/firebug.js"></script>
     <script src="../lib/OpenLayers.js"></script>
     <script type="text/javascript">
         var map, vectors, controls;
@@ -40,18 +39,20 @@
             map.addControl(new OpenLayers.Control.LayerSwitcher());
             map.addControl(new OpenLayers.Control.MousePosition());
             
-            function report(event) {
-                OpenLayers.Console.log(event.type, event.feature ? event.feature.id : event.components);
+            if (console && console.log) {
+                function report(event) {
+                    console.log(event.type, event.feature ? event.feature.id : event.components);
+                }
+                vectors.events.on({
+                    "beforefeaturemodified": report,
+                    "featuremodified": report,
+                    "afterfeaturemodified": report,
+                    "vertexmodified": report,
+                    "sketchmodified": report,
+                    "sketchstarted": report,
+                    "sketchcomplete": report
+                });
             }
-            vectors.events.on({
-                "beforefeaturemodified": report,
-                "featuremodified": report,
-                "afterfeaturemodified": report,
-                "vertexmodified": report,
-                "sketchmodified": report,
-                "sketchstarted": report,
-                "sketchcomplete": report
-            });
             controls = {
                 point: new OpenLayers.Control.DrawFeature(vectors,
                             OpenLayers.Handler.Point),



More information about the Commits mailing list