Dot notation for unquoted property.

This commit is contained in:
Tim Schaub
2012-06-20 18:41:54 +02:00
parent 453d2e9c08
commit 32d5397301

View File

@@ -70,9 +70,9 @@ ol.Projection.prototype.setUnits = function(units) {
*/ */
ol.Projection.prototype.getExtent = function() { ol.Projection.prototype.getExtent = function() {
if (goog.isNull(this.extent_)) { if (goog.isNull(this.extent_)) {
var defs = ol.Projection['defaults'][this.code_]; var defs = ol.Projection.defaults[this.code_];
if (goog.isDef(defs)) { if (goog.isDef(defs)) {
var ext = defs['maxExtent']; var ext = defs.maxExtent;
if (goog.isDef(ext)) { if (goog.isDef(ext)) {
this.setExtent(new ol.UnreferencedBounds(ext[0],ext[1],ext[2],ext[3])); this.setExtent(new ol.UnreferencedBounds(ext[0],ext[1],ext[2],ext[3]));
} }