|
@@ -692,7 +692,7 @@
|
|
|
|
|
|
result=results[i];
|
|
result=results[i];
|
|
selectable=id(result) !== undefined;
|
|
selectable=id(result) !== undefined;
|
|
- compound=("children" in result) && result.children.length > 0;
|
|
|
|
|
|
+ compound=result.children && result.children.length > 0;
|
|
|
|
|
|
node=$("<li></li>");
|
|
node=$("<li></li>");
|
|
node.addClass("select2-results-dept-"+depth);
|
|
node.addClass("select2-results-dept-"+depth);
|