Name geo constructor so it is profilable

This commit is contained in:
Tom MacWright
2013-02-07 22:41:47 -05:00
parent 0804da824a
commit b6551e8db0
+1 -1
View File
@@ -1,4 +1,4 @@
iD.geo.Extent = function (min, max) {
iD.geo.Extent = function geoExtent(min, max) {
if (!(this instanceof iD.geo.Extent)) return new iD.geo.Extent(min, max);
if (min instanceof iD.geo.Extent) {
return min;