From 5e9cdc7d9171466c2273ca1a494d119c004b0e33 Mon Sep 17 00:00:00 2001 From: Alan Wang <19593300@qq.com> Date: Thu, 22 Jun 2017 13:56:00 +0800 Subject: [PATCH] fix error caused by first argument short when calling warning function --- Libraries/Geolocation/Geolocation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Geolocation/Geolocation.js b/Libraries/Geolocation/Geolocation.js index 8401b0bf268a8a..4f49ba9bf1144e 100644 --- a/Libraries/Geolocation/Geolocation.js +++ b/Libraries/Geolocation/Geolocation.js @@ -175,7 +175,7 @@ var Geolocation = { for (var ii = 0; ii < subscriptions.length; ii++) { var sub = subscriptions[ii]; if (sub) { - warning('Called stopObserving with existing subscriptions.'); + warning(false, 'Called stopObserving with existing subscriptions.'); sub[0].remove(); // array element refinements not yet enabled in Flow var sub1 = sub[1]; sub1 && sub1.remove();