Skip to content

Commit 0e2fb48

Browse files
committed
Fixed properties getters for EasyAutocomplete
1 parent 894976a commit 0e2fb48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/easy-autocomplete.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function init(Survey) {
2121
Survey.JsonObject.metaData.addProperty("text", {
2222
name: "choices:itemvalues",
2323
onGetValue: function(obj) {
24-
return ItemValue.getData(obj.choices);
24+
return Survey.ItemValue.getData(obj.choices || []);
2525
},
2626
onSetValue: function(obj, value) {
2727
obj.choices = value;
@@ -31,7 +31,7 @@ function init(Survey) {
3131
name: "choicesByUrl:restfull",
3232
className: "ChoicesRestfull",
3333
onGetValue: function(obj) {
34-
return obj.choicesByUrl.getData();
34+
return obj && obj.choicesByUrl && obj.choicesByUrl.getData();
3535
},
3636
onSetValue: function(obj, value) {
3737
if (!obj.choicesByUrl) {

0 commit comments

Comments
 (0)