scratch-blocks 2.1.18 → 2.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_field_angle.d.ts","sourceRoot":"","sources":["../../../../src/fields/scratch_field_angle.ts"],"names":[],"mappings":"AAkcA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,wBAAgB,yBAAyB,SAExC"}
1
+ {"version":3,"file":"scratch_field_angle.d.ts","sourceRoot":"","sources":["../../../../src/fields/scratch_field_angle.ts"],"names":[],"mappings":"AAucA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,wBAAgB,yBAAyB,SAExC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scratch-blocks",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "description": "Scratch Blocks is a library for building creative computing interfaces.",
5
5
  "author": "Massachusetts Institute of Technology",
6
6
  "license": "Apache-2.0",
@@ -140,12 +140,15 @@ class ScratchFieldAngle extends Blockly.FieldNumber {
140
140
  this.gauge = undefined
141
141
  if (this.mouseDownWrapper_) {
142
142
  Blockly.browserEvents.unbind(this.mouseDownWrapper_)
143
+ this.mouseDownWrapper_ = undefined
143
144
  }
144
145
  if (this.mouseUpWrapper) {
145
146
  Blockly.browserEvents.unbind(this.mouseUpWrapper)
147
+ this.mouseUpWrapper = undefined
146
148
  }
147
149
  if (this.mouseMoveWrapper) {
148
150
  Blockly.browserEvents.unbind(this.mouseMoveWrapper)
151
+ this.mouseMoveWrapper = undefined
149
152
  }
150
153
  }
151
154
 
@@ -298,9 +301,11 @@ class ScratchFieldAngle extends Blockly.FieldNumber {
298
301
  onMouseUp() {
299
302
  if (this.mouseMoveWrapper) {
300
303
  Blockly.browserEvents.unbind(this.mouseMoveWrapper)
304
+ this.mouseMoveWrapper = undefined
301
305
  }
302
306
  if (this.mouseUpWrapper) {
303
307
  Blockly.browserEvents.unbind(this.mouseUpWrapper)
308
+ this.mouseUpWrapper = undefined
304
309
  }
305
310
  }
306
311