File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 149
149
target : target ,
150
150
data : data ,
151
151
origin : target_id
152
- } )
152
+ } ) ;
153
153
} ,
154
154
list : function ( ) {
155
155
return new Promise ( function ( resolve ) {
162
162
sysend . off ( '__window_ack__' ) ;
163
163
resolve ( ids ) ;
164
164
} , target_collecting_timeout ) ;
165
- } )
165
+ } ) ;
166
166
} ,
167
167
isPrimary : function ( ) {
168
168
return primary ;
355
355
if ( primary ) {
356
356
sysend . broadcast ( '__ack__' ) ;
357
357
}
358
- trigger ( handlers . open , {
359
- count : target_count ,
360
- primary : data . primary ,
361
- id : data . id
362
- } ) ;
358
+ setTimeout ( function ( ) {
359
+ trigger ( handlers . open , {
360
+ count : target_count ,
361
+ primary : data . primary ,
362
+ id : data . id
363
+ } ) ;
364
+ } , 100 ) ;
363
365
} ) ;
364
366
365
367
sysend . on ( '__ack__' , function ( ) {
390
392
} ) ;
391
393
392
394
sysend . on ( '__message__' , function ( data ) {
393
- console . log ( { data, target_id} ) ;
394
395
if ( data . target === target_id ) {
395
- console . log ( handlers . message ) ;
396
396
trigger ( handlers . message , data ) ;
397
397
}
398
398
} ) ;
You can’t perform that action at this time.
0 commit comments