From cb8e8c9e01894cb798a0d8b10b48a52c6adb8952 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sun, 12 Jan 2014 20:09:20 +0100 Subject: [PATCH] Improve GroupList isGroup() method --- inc/myco_objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/myco_objects.js b/inc/myco_objects.js index c05b51f..74ed9bf 100644 --- a/inc/myco_objects.js +++ b/inc/myco_objects.js @@ -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) {