From ffe18d6035faba9ae35604d3e705038e0109e24c Mon Sep 17 00:00:00 2001 From: megawac Date: Sun, 21 Sep 2014 18:14:56 -0400 Subject: [PATCH] Fix typos pointed out by @T045T in #110 --- src/core/Topic.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/Topic.js b/src/core/Topic.js index 7806f40c1..253e27741 100644 --- a/src/core/Topic.js +++ b/src/core/Topic.js @@ -29,8 +29,8 @@ ROSLIB.Topic = function(options) { this.queue_size = options.queue_size || 100; // Check for valid compression types - if (this.compression && this.compression !== 'png' && this.compression !== - 'none') { + if (this.compression && this.compression !== 'png' && + this.compression !== 'none') { this.emit('warning', this.compression + ' compression is not supported. No compression will be used.'); } @@ -58,10 +58,10 @@ ROSLIB.Topic.prototype.subscribe = function(callback) { that.emit('message', message); }); - this.id = 'subscribe:' + this.name + ':' + (++this.ros.idCounter); + this.subscribeId = 'subscribe:' + this.name + ':' + (++this.ros.idCounter); this.ros.callOnConnection({ op: 'subscribe', - id: this.id, + id: this.subscribeId, type: this.messageType, topic: this.name, compression: this.compression, @@ -135,4 +135,4 @@ ROSLIB.Topic.prototype.publish = function(message) { latch: this.latch }; this.ros.callOnConnection(call); -}; \ No newline at end of file +};