Fix debug message in Notifier to properly handle int or array for ids

This commit is contained in:
Dan Stillman 2006-06-02 07:04:13 +00:00
parent a7d5685da7
commit daa1a6e8a5

View file

@ -44,8 +44,10 @@ Scholar.Notifier = new function(){
} }
for (i in _observers[treeType]){ for (i in _observers[treeType]){
Scholar.debug("Calling _observers['" + treeType + "']['" + i + "'].notify('" + event Scholar.debug("Calling _observers['" + treeType + "']"
+ "', " + type + "', " + ids.join() + ")", 4); + "['" + i + "'].notify('" + event + "', " + type + "', "
+ (typeof ids=='Object' ? ids.join() : ids)
+ ")", 4);
_observers[treeType][i].notify(event, type, ids); _observers[treeType][i].notify(event, type, ids);
} }
} }