This commit is contained in:
Hopiu 2014-04-22 23:18:52 +02:00
parent 86570ea701
commit 78d52fcb14

View file

@ -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 ) ) {