topics: remove dependency on __REGISTER__ so we avoid race condition

This commit is contained in:
Marcin Lulek 2016-09-23 13:07:01 +02:00
parent 98b914ff36
commit 09afffc7df
2 changed files with 1 additions and 10 deletions

View file

@ -10,13 +10,9 @@ var rhodeCodeApp = Polymer({
for (var i = 0; i < alertMessagePayloads.length; i++) {
$.Topic('/notifications').publish(alertMessagePayloads[i]);
}
$.Topic('/plugins/__REGISTER__').subscribe(
this.kickoffChannelstreamPlugin.bind(this)
);
$.Topic('/connection_controller/subscribe').subscribe(
this.subscribeToChannelTopic.bind(this));
this.kickoffChannelstreamPlugin();
},
/** proxy to channelstream connection */

View file

@ -146,11 +146,6 @@ c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default
<%def name="head_extra()"></%def>
${self.head_extra()}
<script>
window.addEventListener("load", function(event) {
$.Topic('/plugins/__REGISTER__').prepareOrPublish({});
});
</script>
## extra stuff
%if c.pre_code:
${c.pre_code|n}