[ReactNative] Remove global MutationObserver to fix Bluebird feature detection

This commit is contained in:
Christopher Chedeau 2015-03-31 14:56:10 -07:00
parent a0998abd19
commit c82893be8a

View File

@ -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) {