Spell projection with p and separate tests to avoid mock issues.
This commit is contained in:
@@ -101,8 +101,8 @@ OpenLayers.Projection = OpenLayers.Class({
|
||||
equals: function(projection) {
|
||||
var p = projection, equals = false;
|
||||
if (p) {
|
||||
if (!(projection instanceof OpenLayers.Projection)) {
|
||||
projection = new OpenLayers.Projection(projection);
|
||||
if (!(p instanceof OpenLayers.Projection)) {
|
||||
p = new OpenLayers.Projection(p);
|
||||
}
|
||||
if (window.Proj4js && this.proj.defData && p.proj.defData) {
|
||||
equals = this.proj.defData.replace(this.titleRegEx, "") ==
|
||||
|
||||
Reference in New Issue
Block a user