Skip to content

Commit

Permalink
Fixed JavaScript "no-eval" violation.
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Jul 22, 2015
1 parent fbb4f07 commit 77a112c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"new-cap": [0, {"newIsCap": true, "capIsNew": true}],
"no-alert": [0],
"no-eval": [1],
"no-eval": [2],
"no-extend-native": [2, {"exceptions": ["Date", "String"]}],
"no-multi-spaces": [2],
"no-octal-escape": [2],
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/gis/static/gis/js/OLMapWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77a112c

Please sign in to comment.