Skip to content

Commit

Permalink
Merge pull request #106 from megawac/unsub-topic
Browse files Browse the repository at this point in the history
Fix typos from #105
  • Loading branch information
T045T committed Sep 22, 2014
2 parents 98d3425 + ffe18d6 commit 7e130f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/Topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -135,4 +135,4 @@ ROSLIB.Topic.prototype.publish = function(message) {
latch: this.latch
};
this.ros.callOnConnection(call);
};
};

0 comments on commit 7e130f9

Please sign in to comment.