Merge pull request #25 from LLK/feature/stop-block

Implement stop block
This commit is contained in:
Tim Mickel 2016-05-03 14:39:48 -04:00
commit 326e03b5d2
3 changed files with 7 additions and 3 deletions

View file

@ -51,6 +51,8 @@ Scratch3Blocks.prototype.wait = function(argValues, util) {
Scratch3Blocks.prototype.stop = function() { Scratch3Blocks.prototype.stop = function() {
console.log('Running: control_stop'); console.log('Running: control_stop');
// @todo - don't use this.runtime
this.runtime.stopAll();
}; };
Scratch3Blocks.prototype.whenFlagClicked = function() { Scratch3Blocks.prototype.whenFlagClicked = function() {

2
vm.js
View file

@ -2032,6 +2032,8 @@
Scratch3Blocks.prototype.stop = function() { Scratch3Blocks.prototype.stop = function() {
console.log('Running: control_stop'); console.log('Running: control_stop');
// @todo - don't use this.runtime
this.runtime.stopAll();
}; };
Scratch3Blocks.prototype.whenFlagClicked = function() { Scratch3Blocks.prototype.whenFlagClicked = function() {

6
vm.min.js vendored

File diff suppressed because one or more lines are too long