From: erickson Date: Mon, 14 Apr 2008 20:22:14 +0000 (+0000) Subject: checking to make sure the potential event is actually an object before using the... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0e53fa5411f826a7528c9f4b1aa476a5cc12ad36;p=Evergreen.git checking to make sure the potential event is actually an object before using the "in" operator git-svn-id: svn://svn.open-ils.org/ILS/trunk@9354 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/Event.js b/Open-ILS/web/js/dojo/openils/Event.js index 9e5b872341..bc82634055 100644 --- a/Open-ILS/web/js/dojo/openils/Event.js +++ b/Open-ILS/web/js/dojo/openils/Event.js @@ -45,7 +45,7 @@ if(!dojo._hasResource["openils.Event"]) { * null is returned */ openils.Event.parse = function(evt) { - if(evt && 'ilsevent' in evt && 'textcode' in evt) + if(evt && typeof evt == 'object' && 'ilsevent' in evt && 'textcode' in evt) return new openils.Event(evt); return null; }