Addresses #1796, trigger() checks type rather than event for 'modify', 'delete'

Just take out check for extraData
This commit is contained in:
Dan Stillman 2011-10-10 17:01:22 +00:00
parent 92382ca856
commit ec6d38df68

View file

@ -110,14 +110,6 @@ Zotero.Notifier = new function(){
throw ('Invalid type ' + type + ' in Notifier.trigger()');
}
switch (event) {
case 'modify':
case 'delete':
if (!extraData) {
throw ("Extra data must be supplied with Notifier type '" + type + "'");
}
}
ids = Zotero.flattenArguments(ids);
var queue = _inTransaction && !force;