From cce270022496cf26715216492384916ea38fc9b2 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Thu, 4 Dec 2014 11:45:35 -0800 Subject: [PATCH] Skip setting undefined values. --- midp/midp.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midp/midp.js b/midp/midp.js index 8c558cf7..776260d3 100644 --- a/midp/midp.js +++ b/midp/midp.js @@ -858,6 +858,9 @@ MIDP.copyEvent = function(obj, isolateId) { var e = MIDP.nativeEventQueues[isolateId].shift(); obj.klass.classInfo.getField("I.type.I").set(obj, e.type); obj.klass.classInfo.fields.forEach(function(field) { + if (e[field.name] === undefined) { + return; + } field.set(obj, e[field.name]); }); }