Updated getSubscribersFor method to work around bug in IE 8/9

This commit is contained in:
ifandelse 2013-07-24 00:25:16 -04:00
parent e909bbad08
commit d936f7859d
3 changed files with 3 additions and 3 deletions

View file

@ -407,7 +407,7 @@
tpc = arguments[ 0 ].topic;
}
if ( postal.configuration.bus.subscriptions[ channel ] &&
postal.configuration.bus.subscriptions[ channel ].hasOwnProperty( tpc ) ) {
Object.prototype.hasOwnProperty.call( postal.configuration.bus.subscriptions[ channel ], tpc )) {
return postal.configuration.bus.subscriptions[ channel ][ tpc ];
}
return [];

2
lib/postal.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -61,7 +61,7 @@ var postal = {
tpc = arguments[ 0 ].topic;
}
if ( postal.configuration.bus.subscriptions[ channel ] &&
postal.configuration.bus.subscriptions[ channel ].hasOwnProperty( tpc ) ) {
Object.prototype.hasOwnProperty.call( postal.configuration.bus.subscriptions[ channel ], tpc )) {
return postal.configuration.bus.subscriptions[ channel ][ tpc ];
}
return [];