Always pass array of ids to notify() from Notifier.trigger()

This commit is contained in:
Dan Stillman 2006-10-12 00:30:24 +00:00
parent c0eb1746db
commit 7271ec6e43
3 changed files with 3 additions and 4 deletions

View File

@ -104,7 +104,6 @@ Zotero.CollectionTreeView.prototype.reload = function()
Zotero.CollectionTreeView.prototype.notify = function(action, type, ids)
{
var madeChanges = false;
var ids = Zotero.flattenArguments(ids);
if(action == 'delete')
{

View File

@ -95,8 +95,6 @@ Zotero.ItemTreeView.prototype.notify = function(action, type, ids)
this.selection.selectEventsSuppressed = true;
var savedSelection = this.saveSelection();
ids = Zotero.flattenArguments(ids);
// See if we're in the active window
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);

View File

@ -80,8 +80,10 @@ Zotero.Notifier = new function(){
throw('Invalid type ' + type + ' in Notifier.trigger()');
}
ids = Zotero.flattenArguments(ids);
Zotero.debug("Notifier.trigger('" + event + "', '" + type + "', "
+ (typeof ids=='object' ? '[' + ids.join() + ']' : ids) + ") called "
+ '[' + ids.join() + ']' + ") called "
+ "[collection observers: " + _observers['collectionObserver'].length
+ ", item observers: " + _observers['itemObserver'].length + "]");