mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-29 19:29:35 +02:00
Name geo constructor so it is profilable
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user