'supported' is defined, API-wise, to return 'false' if not supported, but the

VML test returns 'undefined' instead. Fix that with this patch from fredj.
(Closes #1165)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-11-21 15:48:41 +00:00
parent de8c0119f1
commit a4d3f48752

View File

@@ -61,8 +61,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
* {Boolean} The browser supports the VML renderer
*/
supported: function() {
var supported = document.namespaces;
return supported;
return !!(document.namespaces);
},
/**