Improve GroupList isGroup() method

This commit is contained in:
Benjamin Renard 2014-01-12 20:09:20 +01:00
parent cc37ad1ffc
commit cb8e8c9e01

View file

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