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
This commit is contained in:
Kevin Lacker 2016-06-22 17:02:42 -07:00 committed by Facebook Github Bot
parent fdcb865cf3
commit fff3d5dfb4
1 changed files with 0 additions and 1 deletions

View File

@ -258,7 +258,6 @@ function display(type, value) {
var container = document.getElementsByTagName('block')[0].parentNode; var container = document.getElementsByTagName('block')[0].parentNode;
container.className = 'display-' + type + '-' + value + ' ' + container.className = 'display-' + type + '-' + value + ' ' +
container.className.replace(RegExp('display-' + type + '-[a-z]+ ?'), ''); 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 // If we are coming to the page with a hash in it (i.e. from a search, for example), try to get