From 78d52fcb1452d9774f8791dbcfe9e67651990f53 Mon Sep 17 00:00:00 2001 From: Hopiu Date: Tue, 22 Apr 2014 23:18:52 +0200 Subject: [PATCH] Fixes #65 --- src/Api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api.js b/src/Api.js index d439089..90521bc 100644 --- a/src/Api.js +++ b/src/Api.js @@ -125,7 +125,7 @@ _postal = { tpc = arguments[ 1 ]; if ( arguments.length === 1 ) { channel = arguments[ 0 ].channel || this.configuration.DEFAULT_CHANNEL; - tpc = arguments[ 0 ].topic; + tpc = arguments[ 0 ].topic || arguments[ 0 ]; } if ( this.subscriptions[ channel ] && Object.prototype.hasOwnProperty.call( this.subscriptions[ channel ], tpc ) ) {