Skip to content

Commit

Permalink
Remove unnecessary eval
Browse files Browse the repository at this point in the history
See issue brutusin#121
JamesCullum authored Mar 13, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f37276e commit 4649cf1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/js/brutusin-json-forms.js
Original file line number Diff line number Diff line change
@@ -1241,13 +1241,7 @@ if (typeof brutusin === "undefined") {
}

function getInitialValue(id) {
var ret;
try {
eval("ret = initialValue" + id.substring(1));
} catch (e) {
ret = null;
}
return ret;
return initialValue;
}

function getValue(schema, input) {

0 comments on commit 4649cf1

Please sign in to comment.