topics: remove dependency on __REGISTER__ so we avoid race condition
This commit is contained in:
parent
98b914ff36
commit
09afffc7df
2 changed files with 1 additions and 10 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue