summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Dynowski <k.dynowski@samsung.com>2018-12-21 11:00:56 (GMT)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2018-12-21 11:00:56 (GMT)
commit12869a1681e2e227ce337e7bfd8b05b0b4521be0 (patch)
tree5dc54b9d8dca2a8c7f8734c73a53211d2808b562
parenta21061be7104dceef291499155eec124592285a5 (diff)
parent754443785ffc72b45e061722ba9eb0d32a350a81 (diff)
downloadlibteec-tizen.zip
libteec-tizen.tar.gz
libteec-tizen.tar.bz2
-rw-r--r--src/teec/libteec_api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/teec/libteec_api.js b/src/teec/libteec_api.js
index 3568a1d..4159600 100644
--- a/src/teec/libteec_api.js
+++ b/src/teec/libteec_api.js
@@ -33,8 +33,8 @@ function ListenerManager(native, listenerName, handle) {
ListenerManager.prototype.addListener = function(callback, nativeCall, data) {
var id = this.nextId;
- if (!nativeSet) {
- native.addListener(listenerName, function(msg) {
+ if (!this.nativeSet) {
+ this.native.addListener(this.listenerName, function(msg) {
for (var watchId in this.listeners) {
if (this.listeners.hasOwnProperty(watchId)) {
this.handle(msg, this.listeners[watchId], watchId);