Addresses #1796, trigger() checks type rather than event for 'modify', 'delete'
Just take out check for extraData
This commit is contained in:
parent
92382ca856
commit
ec6d38df68
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue