diff --git a/select2.js b/select2.js index 2b5e5c4e..44d0e924 100755 --- a/select2.js +++ b/select2.js @@ -692,7 +692,7 @@ result=results[i]; selectable=id(result) !== undefined; - compound=("children" in result) && result.children.length > 0; + compound=result.children && result.children.length > 0; node=$("
  • "); node.addClass("select2-results-dept-"+depth);