From 64b8e8b09f7938326d8c7033818f9d4841a104f9 Mon Sep 17 00:00:00 2001 From: machard Date: Thu, 23 Apr 2015 11:15:55 +0200 Subject: [PATCH] only call cb if exists --- Libraries/Utilities/MessageQueue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Utilities/MessageQueue.js b/Libraries/Utilities/MessageQueue.js index c047d06deecf93..0a55b152ac3c75 100644 --- a/Libraries/Utilities/MessageQueue.js +++ b/Libraries/Utilities/MessageQueue.js @@ -261,7 +261,7 @@ var MessageQueueMixin = { 'both the success callback and the error callback.', cbID ); - cb.apply(scope, args); + if (cb) cb.apply(scope, args); } catch(ie_requires_catch) { throw ie_requires_catch; } finally {