Improve GroupList isGroup() method
Benjamin Renard

Benjamin Renard commited on 2014-01-12 19:09:20
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -74,7 +74,7 @@ function GroupList() {
74 74
   }
75 75
 
76 76
   this.isGroup=function(el) {
77
-    return (el.isGroup!==undefined);
77
+    return (jQuery.type(el)=='object' && jQuery.type(el.isGroup)=='function' && el.isGroup());
78 78
   }
79 79
 
80 80
   this.removeGroup=function(name) {
81 81