Skip to content

Commit

Permalink
Comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil committed Apr 6, 2018
1 parent a243b4f commit 88b96ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sails.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -1177,13 +1177,13 @@
*/
SailsSocket.prototype.off = function (evName, fn){

// Bind the event to the raw underlying socket if possible.
// Unbind the event from the raw underlying socket if possible.
if (this._raw) {
this._raw.off(evName, fn);
return this;
}

// Otherwise queue the event binding.
// Otherwise unqueue the queued event binding.
if (this.eventQueue[evName] && this.eventQueue[evName].indexOf(fn) > -1) {
this.eventQueue[evName].splice(this.eventQueue[evName].indexOf(fn), 1);
}
Expand Down

0 comments on commit 88b96ea

Please sign in to comment.