Unbind only from newPost

This commit is contained in:
gpascualg 2016-05-14 04:36:31 +02:00
parent 0974516c31
commit eb0ab69cf3
2 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ System.register('flarum/pusher/main', ['flarum/extend', 'flarum/app', 'flarum/co
});
extend(context, 'onunload', function () {
return channels.main.unbind();
return channels.main.unbind('newPost');
});
});
});
@ -151,7 +151,7 @@ System.register('flarum/pusher/main', ['flarum/extend', 'flarum/app', 'flarum/co
});
extend(context, 'onunload', function () {
return channels.main.unbind();
return channels.main.unbind('newPost');
});
});
});

View File

@ -58,7 +58,7 @@ app.initializers.add('flarum-pusher', () => {
}
});
extend(context, 'onunload', () => channels.main.unbind());
extend(context, 'onunload', () => channels.main.unbind('newPost'));
});
});
@ -127,7 +127,7 @@ app.initializers.add('flarum-pusher', () => {
}
});
extend(context, 'onunload', () => channels.main.unbind());
extend(context, 'onunload', () => channels.main.unbind('newPost'));
});
});