Fix debug message in Notifier to properly handle int or array for ids
This commit is contained in:
parent
a7d5685da7
commit
daa1a6e8a5
1 changed files with 4 additions and 2 deletions
|
@ -44,8 +44,10 @@ Scholar.Notifier = new function(){
|
|||
}
|
||||
|
||||
for (i in _observers[treeType]){
|
||||
Scholar.debug("Calling _observers['" + treeType + "']['" + i + "'].notify('" + event
|
||||
+ "', " + type + "', " + ids.join() + ")", 4);
|
||||
Scholar.debug("Calling _observers['" + treeType + "']"
|
||||
+ "['" + i + "'].notify('" + event + "', " + type + "', "
|
||||
+ (typeof ids=='Object' ? ids.join() : ids)
|
||||
+ ")", 4);
|
||||
_observers[treeType][i].notify(event, type, ids);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue