@@ -556,17 +556,10 @@ Blockly.Flyout.prototype.clearOldBlocks_ = function() {
556
556
* @private
557
557
*/
558
558
Blockly . Flyout . prototype . addBlockListeners_ = function ( root , block , rect ) {
559
- if ( this . autoClose ) {
560
- this . listeners_ . push ( Blockly . bindEventWithChecks_ ( root , 'mousedown' , null ,
561
- this . createBlockFunc_ ( block ) ) ) ;
562
- this . listeners_ . push ( Blockly . bindEventWithChecks_ ( rect , 'mousedown' , null ,
563
- this . createBlockFunc_ ( block ) ) ) ;
564
- } else {
565
- this . listeners_ . push ( Blockly . bindEventWithChecks_ ( root , 'mousedown' , null ,
566
- this . blockMouseDown_ ( block ) ) ) ;
567
- this . listeners_ . push ( Blockly . bindEventWithChecks_ ( rect , 'mousedown' , null ,
568
- this . blockMouseDown_ ( block ) ) ) ;
569
- }
559
+ this . listeners_ . push ( Blockly . bindEventWithChecks_ ( root , 'mousedown' , null ,
560
+ this . blockMouseDown_ ( block ) ) ) ;
561
+ this . listeners_ . push ( Blockly . bindEventWithChecks_ ( rect , 'mousedown' , null ,
562
+ this . blockMouseDown_ ( block ) ) ) ;
570
563
this . listeners_ . push ( Blockly . bindEvent_ ( root , 'mouseover' , block ,
571
564
block . addSelect ) ) ;
572
565
this . listeners_ . push ( Blockly . bindEvent_ ( root , 'mouseout' , block ,
0 commit comments