From fff3d5dfb44b0fd326c65266d32a4ae7b1dc375d Mon Sep 17 00:00:00 2001 From: Kevin Lacker Date: Wed, 22 Jun 2016 17:02:42 -0700 Subject: [PATCH] fix Firefox bug Summary: The motivation is that the getting started page was not working in some cases in Firefox. This line of code appears to be at best a no-op, at worst fails in Firefox, since "event" is undefined. Closes https://github.com/facebook/react-native/pull/8335 Differential Revision: D3473333 Pulled By: JoelMarcey fbshipit-source-id: 40581e83126675aa072c6ee25609cfb787015ce7 --- docs/QuickStart-GettingStarted.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/QuickStart-GettingStarted.md b/docs/QuickStart-GettingStarted.md index ceb52ccec09..03863fcb59c 100644 --- a/docs/QuickStart-GettingStarted.md +++ b/docs/QuickStart-GettingStarted.md @@ -258,7 +258,6 @@ function display(type, value) { var container = document.getElementsByTagName('block')[0].parentNode; container.className = 'display-' + type + '-' + value + ' ' + container.className.replace(RegExp('display-' + type + '-[a-z]+ ?'), ''); - event && event.preventDefault(); } // If we are coming to the page with a hash in it (i.e. from a search, for example), try to get