Avoiding unnecessary repeated checks of navigator.userAgent. The constants added here should not be used outside the library. In the future, they should be removed from the library. r=ahocevar (closes #2911)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
layer.destroy();
|
||||
|
||||
var options = { unsupportedBrowsers: [OpenLayers.Util.getBrowserName()]};
|
||||
var options = { unsupportedBrowsers: [OpenLayers.BROWSER_NAME]};
|
||||
layer = new OpenLayers.Layer.WMS.Post(name, url, params, options);
|
||||
t.eq(
|
||||
layer.usePost, false,
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
// test the unsupported browser
|
||||
layer = new OpenLayers.Layer.WMS.Post(name, url, params, {
|
||||
unsupportedBrowsers: [OpenLayers.Util.getBrowserName()]
|
||||
unsupportedBrowsers: [OpenLayers.BROWSER_NAME]
|
||||
});
|
||||
map = new OpenLayers.Map('map');
|
||||
map.addLayer(layer);
|
||||
|
||||
Reference in New Issue
Block a user