From c82893be8abf6726b2e69b020f8248bffff88511 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Tue, 31 Mar 2015 14:56:10 -0700 Subject: [PATCH] [ReactNative] Remove global MutationObserver to fix Bluebird feature detection --- .../Initialization/InitializeJavaScriptAppEngine.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js index a9e06a6cf..51f6809cc 100644 --- a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js +++ b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js @@ -60,6 +60,10 @@ function setupDocumentShim() { if (GLOBAL.document) { GLOBAL.document.createElement = null; } + + // There is no DOM so MutationObserver doesn't make sense. It is used + // as feature detection in Bluebird Promise implementation + GLOBAL.MutationObserver = undefined; } function handleErrorWithRedBox(e) {