File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,13 @@ Row {
32
32
Component .onCompleted : {
33
33
var i = 0 ;
34
34
while (true ) {
35
- var value = properties[" Enum" ][i .toString ()];
36
- if (! value) {
35
+ if (! properties .hasOwnProperty (" Enum" )) {
36
+ break ;
37
+ }
38
+ if (! properties[" Enum" ].hasOwnProperty (i .toString ())) {
37
39
break ;
38
40
}
41
+ var value = properties[" Enum" ][i .toString ()];
39
42
var text = " " ;
40
43
if (properties .hasOwnProperty (" EnumI18n" )) {
41
44
if (properties[" EnumI18n" ].hasOwnProperty (i .toString ())) {
Original file line number Diff line number Diff line change @@ -35,10 +35,13 @@ Row {
35
35
Component .onCompleted : {
36
36
var i = 0 ;
37
37
while (true ) {
38
- var value = properties[" Enum" ][i .toString ()];
39
- if (! value) {
38
+ if (! properties .hasOwnProperty (" Enum" )) {
39
+ break ;
40
+ }
41
+ if (! properties[" Enum" ].hasOwnProperty (i .toString ())) {
40
42
break ;
41
43
}
44
+ var value = properties[" Enum" ][i .toString ()];
42
45
var text = " " ;
43
46
if (properties .hasOwnProperty (" EnumI18n" )) {
44
47
if (properties[" EnumI18n" ].hasOwnProperty (i .toString ())) {
You can’t perform that action at this time.
0 commit comments