[Convergence] Fixed typo in JS 86/100286/2
authorPiotr Kosko <p.kosko@samsung.com>
Fri, 25 Nov 2016 14:46:22 +0000 (15:46 +0100)
committerPiotr Kosko <p.kosko@samsung.com>
Sat, 26 Nov 2016 07:29:37 +0000 (08:29 +0100)
Change-Id: Icc2f38dbfe9b7b25726973e9149c47d60971ce5d
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
src/convergence/convergence_api.js

index 7221f36b73d3ce76e0dd396ce9b06d4a56e70006..5c8650ff2d1edf96991d99d529d27738e6ea44f6 100644 (file)
@@ -379,7 +379,7 @@ RemoteAppControlService.prototype.disconnect = function(successCallback, errorCa
     }
   ]);
 
-  if (this.connectionsState != ConnectionState.CONNECTED) {
+  if (this.connectionState != ConnectionState.CONNECTED) {
     throw new WebAPIException('InvalidStateError', 'Service is not connected yet.');
   }
 
@@ -394,7 +394,7 @@ RemoteAppControlService.prototype.disconnect = function(successCallback, errorCa
   if (native_.isFailure(result)) {
     throw native_.getErrorObject(result);
   } else {
-    this.connectionState = ConnectionState.DISCONNECTED;
+    this.connectionState = ConnectionState.NOT_CONNECTED;
   }
 
   native_.callIfPossible(successCallback, this);
@@ -1063,7 +1063,7 @@ AppCommunicationClientService.prototype.disconnect = function(successCallback, e
   if (native_.isFailure(result)) {
     throw native_.getErrorObject(result);
   } else {
-    this.connectionState = ConnectionState.DISCONNECTED;
+    this.connectionState = ConnectionState.NOT_CONNECTED;
   }
 
   native_.callIfPossible(successCallback, this);