Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of https://github.com/openlayers/openlayers int…

…o vendor-prefixes
  • Loading branch information...
commit 93211a31bc2bb1bb8cdea6dcd97d5dcb8465502f 2 parents ab6b2ef + 533e5f4
@gregersrygg gregersrygg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/OpenLayers/Projection.js
View
4 lib/OpenLayers/Projection.js
@@ -62,7 +62,7 @@ OpenLayers.Projection = OpenLayers.Class({
initialize: function(projCode, options) {
OpenLayers.Util.extend(this, options);
this.projCode = projCode;
- if (window.Proj4js) {
+ if (typeof Proj4js == "object") {
this.proj = new Proj4js.Proj(projCode);
}
},
@@ -115,7 +115,7 @@ OpenLayers.Projection = OpenLayers.Class({
if (!(p instanceof OpenLayers.Projection)) {
p = new OpenLayers.Projection(p);
}
- if (window.Proj4js && this.proj.defData && p.proj.defData) {
+ if ((typeof Proj4js == "object") && this.proj.defData && p.proj.defData) {
equals = this.proj.defData.replace(this.titleRegEx, "") ==
p.proj.defData.replace(this.titleRegEx, "");
} else if (p.getCode) {
Please sign in to comment.
Something went wrong with that request. Please try again.