From 99e51364e53f06f1e88c730fe4d34affc9334250 Mon Sep 17 00:00:00 2001 From: bartvde Date: Sun, 6 Mar 2011 10:08:35 +0000 Subject: [PATCH] Geolocation Examples: JSLINT + IE Fixes, p=cmoullet, r=me (closes #3150) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/geolocation.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/geolocation.js b/examples/geolocation.js index dc847ced33..e1c3320bad 100644 --- a/examples/geolocation.js +++ b/examples/geolocation.js @@ -2,7 +2,7 @@ var style = { fillColor: '#000', fillOpacity: 0.1, strokeWidth: 0 -} +}; var map = new OpenLayers.Map('map'); var layer = new OpenLayers.Layer.OSM( "Simple OSM Map"); @@ -24,7 +24,9 @@ var pulsate = function(feature) { grow = 'up'; var resize = function(){ - if (count>16) clearInterval(window.resizeInterval); + if (count>16) { + clearInterval(window.resizeInterval); + } var interval = radius * 0.03; var ratio = interval/radius; switch(count) { @@ -40,7 +42,7 @@ var pulsate = function(feature) { feature.geometry.resize(1+ratio, point); vector.drawFeature(feature); count++; - } + }; window.resizeInterval = window.setInterval(resize, 50, point, radius); };