From: Lukasz Bardeli Date: Sun, 21 Dec 2014 12:24:19 +0000 (+0100) Subject: [NFC] fix for UTC tests X-Git-Tag: submit/tizen_mobile/20150603.064609~1^2~764 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb30c8666630a2247e781cb418dbe66371fec8eb;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [NFC] fix for UTC tests Change-Id: I0dd54c94350d5406b895afd9baaeb17c2b8ce6ed Signed-off-by: Lukasz Bardeli --- diff --git a/src/nfc/nfc_api.js b/src/nfc/nfc_api.js index b0d61db..6c7b058 100644 --- a/src/nfc/nfc_api.js +++ b/src/nfc/nfc_api.js @@ -152,7 +152,7 @@ function NFCAdapter() { var ret = native_.callSync('NFCAdapter_getPowered'); if (native_.isFailure(ret)) { - return ''; + return false; } return native_.getResultObject(ret); @@ -391,7 +391,7 @@ NFCAdapter.prototype.addActiveSecureElementChangeListener = function() { if (T_.isEmptyObject(cardEmulationModeListener.listeners) && T_.isEmptyObject(activeSecureElementChangeListener.listeners)) { var result = native_.callSync( - 'NFCAdapter_addActiveSecureElementChangeListener '); + 'NFCAdapter_addActiveSecureElementChangeListener'); if (native_.isFailure(result)) { throw new tizen.WebAPIException(0, result.error.message, result.error.name);