File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
services/static-webserver/client/source/class/osparc/wrapper Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,10 @@ qx.Class.define("osparc.wrapper.RocketPreview", {
3636
3737 construct : function ( ) {
3838 this . base ( arguments ) ;
39+
3940 this . _setLayout ( new qx . ui . layout . Grow ( ) ) ;
4041
41- this . __queue = [ ] ;
42+ this . __messageQueue = [ ] ;
4243
4344 // force creation of the iframe child control
4445 this . _createChildControl ( "iframe" ) ;
@@ -96,7 +97,7 @@ qx.Class.define("osparc.wrapper.RocketPreview", {
9697 } ,
9798
9899 members : {
99- __queue : null ,
100+ __messageQueue : null ,
100101 __iframeEl : null ,
101102
102103 _createChildControlImpl : function ( id ) {
@@ -142,7 +143,7 @@ qx.Class.define("osparc.wrapper.RocketPreview", {
142143
143144 __send : function ( msg ) {
144145 if ( ! this . isReady ( ) ) {
145- this . __queue . push ( msg ) ;
146+ this . __messageQueue . push ( msg ) ;
146147 return ;
147148 }
148149 this . __postMessage ( msg ) ;
@@ -152,8 +153,8 @@ qx.Class.define("osparc.wrapper.RocketPreview", {
152153 const data = ev . data ;
153154 if ( data && data . type === "osparc:ready" ) {
154155 this . setReady ( true ) ;
155- while ( this . __queue . length ) {
156- this . __postMessage ( this . __queue . shift ( ) ) ;
156+ while ( this . __messageQueue . length ) {
157+ this . __postMessage ( this . __messageQueue . shift ( ) ) ;
157158 }
158159 }
159160 } ,
You can’t perform that action at this time.
0 commit comments