From ec6d38df68681d021a96460f9f83cc42d9dd9715 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 10 Oct 2011 17:01:22 +0000 Subject: [PATCH] Addresses #1796, trigger() checks type rather than event for 'modify', 'delete' Just take out check for extraData --- chrome/content/zotero/xpcom/notifier.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/chrome/content/zotero/xpcom/notifier.js b/chrome/content/zotero/xpcom/notifier.js index 6f8423d726..713fc41cab 100644 --- a/chrome/content/zotero/xpcom/notifier.js +++ b/chrome/content/zotero/xpcom/notifier.js @@ -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;