From 4d817245f79c10d548abbd541c89ed3ad1ea5cac Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Mon, 10 Aug 2015 19:09:38 -0100 Subject: [PATCH] Fix crash when using alert() polyfill due to null callback --- .../Initialization/InitializeJavaScriptAppEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js index 6a1dfa3cd7bee4..1aefe0c589034b 100644 --- a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js +++ b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js @@ -90,7 +90,7 @@ function setUpAlert() { message: '' + text, buttons: [{'cancel': 'OK'}], }; - RCTAlertManager.alertWithArgs(alertOpts, null); + RCTAlertManager.alertWithArgs(alertOpts, function () {}); }; } }