diff options
| author | Tim Graham <timograham@gmail.com> | 2015-07-20 19:36:59 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-07-22 17:09:53 -0400 |
| commit | 77a112cb88eceade0c52151f55ba8f03a720dc41 (patch) | |
| tree | a08546f4467cc870de95e15913e9f8b4ada75545 /django | |
| parent | fbb4f0797cc44fe2dedda38d1c681fe09473859e (diff) | |
Fixed JavaScript "no-eval" violation.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/gis/static/gis/js/OLMapWidget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/static/gis/js/OLMapWidget.js b/django/contrib/gis/static/gis/js/OLMapWidget.js index 40dd5890ce..0736779370 100644 --- a/django/contrib/gis/static/gis/js/OLMapWidget.js +++ b/django/contrib/gis/static/gis/js/OLMapWidget.js @@ -175,7 +175,7 @@ } else if (options.geom_name === 'GeometryCollection') { options.geom_type = OpenLayers.Geometry.Collection; } else { - options.geom_type = eval('OpenLayers.Geometry.' + options.geom_name); + options.geom_type = OpenLayers.Geometry[options.geom_name]; } // Default options |
