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

This commit is contained in:
Dan Stillman 2011-10-06 16:04:53 +00:00
parent 8eda39ad7e
commit 21f1e3789e

View file

@ -110,7 +110,7 @@ Zotero.Notifier = new function(){
throw ('Invalid type ' + type + ' in Notifier.trigger()'); throw ('Invalid type ' + type + ' in Notifier.trigger()');
} }
switch (type) { switch (event) {
case 'modify': case 'modify':
case 'delete': case 'delete':
if (!extraData) { if (!extraData) {