mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Convert react-native-github/Libraries to let/const
Reviewed By: sahrens Differential Revision: D7956042 fbshipit-source-id: 221851aa311f3cdd6326497352b366048db0a1bb
This commit is contained in:
committed by
Facebook Github Bot
parent
266016c521
commit
8f5ebe5952
@@ -54,14 +54,14 @@ let BackHandler;
|
||||
|
||||
if (Platform.isTVOS) {
|
||||
const _tvEventHandler = new TVEventHandler();
|
||||
var _backPressSubscriptions = new Set();
|
||||
const _backPressSubscriptions = new Set();
|
||||
|
||||
_tvEventHandler.enable(this, function(cmp, evt) {
|
||||
if (evt && evt.eventType === 'menu') {
|
||||
var invokeDefault = true;
|
||||
var subscriptions = Array.from(_backPressSubscriptions.values()).reverse();
|
||||
let invokeDefault = true;
|
||||
const subscriptions = Array.from(_backPressSubscriptions.values()).reverse();
|
||||
|
||||
for (var i = 0; i < subscriptions.length; ++i) {
|
||||
for (let i = 0; i < subscriptions.length; ++i) {
|
||||
if (subscriptions[i]()) {
|
||||
invokeDefault = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user