www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ec6d38df68681d021a96460f9f83cc42d9dd9715
parent 92382ca856c3d97a690094febad77b3afb923a63
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 10 Oct 2011 17:01:22 +0000

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

Just take out check for extraData


Diffstat:
Mchrome/content/zotero/xpcom/notifier.js | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git 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;