From 20fd5be2d39e26127d0134c8afa82ce26ad4c216 Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Wed, 25 Nov 2015 17:09:43 -0800 Subject: [PATCH] rename var --- CodePush.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CodePush.m b/CodePush.m index 676dd29..4bc0f12 100644 --- a/CodePush.m +++ b/CodePush.m @@ -7,7 +7,7 @@ #import "CodePush.h" @implementation CodePush { - BOOL hasRestartListener; + BOOL _hasResumeListener; } RCT_EXPORT_MODULE() @@ -338,14 +338,14 @@ RCT_EXPORT_METHOD(installUpdate:(NSDictionary*)updatePackage [self loadBundle]; } else if (installMode == CodePushInstallModeOnNextResume) { // Ensure we do not add the listener twice. - if (!hasRestartListener) { + if (!_hasResumeListener) { // Register for app resume notifications so that we // can check for pending updates which support "restart on resume" [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadBundle) name:UIApplicationWillEnterForegroundNotification object:[UIApplication sharedApplication]]; - hasRestartListener = true; + _hasResumeListener = true; } } // Signal to JS that the update has been applied.