Zoom on feature layer problem

Discussion created by ryansmith52 on May 16, 2014
Latest reply on May 19, 2014 by ryansmith52
Hi, i have the following code to zoom to an extent depending on the the query result. The zoom works certain times on firefox but
doesn't work on chrome.
What could be the problem?


            featureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function (features) {
                    var extent = features[0].geometry.getExtent().expand(1.25);
                    map.setExtent(extent, true);