File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class FieldMatrix extends Blockly.Field<string> {
70
70
* Touch event wrapper.
71
71
* Runs when the field is selected.
72
72
*/
73
- private mouseDownWrapper : Blockly . browserEvents . Data | null = null ;
73
+ private mouseDownWrapper_ : Blockly . browserEvents . Data | null = null ;
74
74
75
75
/**
76
76
* Touch event wrapper.
@@ -558,8 +558,8 @@ class FieldMatrix extends Blockly.Field<string> {
558
558
dispose ( ) {
559
559
super . dispose ( ) ;
560
560
this . matrixStage_ = null ;
561
- if ( this . mouseDownWrapper ) {
562
- Blockly . browserEvents . unbind ( this . mouseDownWrapper ) ;
561
+ if ( this . mouseDownWrapper_ ) {
562
+ Blockly . browserEvents . unbind ( this . mouseDownWrapper_ ) ;
563
563
}
564
564
if ( this . matrixTouchWrapper_ ) {
565
565
Blockly . browserEvents . unbind ( this . matrixTouchWrapper_ ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class ScratchFieldAngle extends Blockly.FieldNumber {
51
51
/**
52
52
* Opaque identifier used to unbind event listener in dispose().
53
53
*/
54
- private mouseDownWrapper : Blockly . browserEvents . Data ;
54
+ private mouseDownWrapper_ : Blockly . browserEvents . Data ;
55
55
56
56
/**
57
57
* Opaque identifier used to unbind event listener in dispose().
@@ -142,8 +142,8 @@ class ScratchFieldAngle extends Blockly.FieldNumber {
142
142
dispose ( ) {
143
143
super . dispose ( ) ;
144
144
this . gauge = null ;
145
- if ( this . mouseDownWrapper ) {
146
- Blockly . browserEvents . unbind ( this . mouseDownWrapper ) ;
145
+ if ( this . mouseDownWrapper_ ) {
146
+ Blockly . browserEvents . unbind ( this . mouseDownWrapper_ ) ;
147
147
}
148
148
if ( this . mouseUpWrapper ) {
149
149
Blockly . browserEvents . unbind ( this . mouseUpWrapper ) ;
@@ -286,7 +286,7 @@ class ScratchFieldAngle extends Blockly.FieldNumber {
286
286
this . getSourceBlock ( ) as Blockly . BlockSvg
287
287
) ;
288
288
289
- this . mouseDownWrapper = Blockly . browserEvents . bind (
289
+ this . mouseDownWrapper_ = Blockly . browserEvents . bind (
290
290
this . handle ,
291
291
"mousedown" ,
292
292
this ,
You can’t perform that action at this time.
0 commit comments