Permalink
Browse files

Merge pull request #387 from markmarkoh/master

change check for "children" in populateResults
  • Loading branch information...
2 parents 281f314 + 7c2dba8 commit 819cca7e709f9bba2efc22b39cdda0cd70593669 @ivaynberg ivaynberg committed Sep 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 select2.js
View
@@ -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=$("<li></li>");
node.addClass("select2-results-dept-"+depth);

0 comments on commit 819cca7

Please sign in to comment.