Only add the VML namespace if we haven't already added it. (Closes #1141)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -34,11 +34,13 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
||||
initialize: function(containerID) {
|
||||
if (!this.supported()) {
|
||||
return;
|
||||
}
|
||||
document.namespaces.add("v", this.xmlns);
|
||||
var style = document.createStyleSheet();
|
||||
style.addRule('v\\:*', "behavior: url(#default#VML); " +
|
||||
"position: relative; display: inline-block;");
|
||||
}
|
||||
if (!document.namespaces.v) {
|
||||
document.namespaces.add("v", this.xmlns);
|
||||
var style = document.createStyleSheet();
|
||||
style.addRule('v\\:*', "behavior: url(#default#VML); " +
|
||||
"position: relative; display: inline-block;");
|
||||
}
|
||||
OpenLayers.Renderer.Elements.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user