Skip to content

Commit

Permalink
fix(cursor): Fixes issue with off is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Nov 18, 2015
1 parent 598d2fa commit 3750d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cursor/Cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class Cursor {
* @returns {Cursor}
*/
off(event, handler) {
handler ? this._cursor.off(event, handler) : this._cursor.removeAllListeners(event);
handler ? this._cursor.removeListener(event, handler) : this._cursor.removeAllListeners(event);
return this;
}

Expand Down

0 comments on commit 3750d1f

Please sign in to comment.