Fix stop block
This commit is contained in:
parent
555b7759e0
commit
ae463653e3
2 changed files with 10 additions and 2 deletions
|
@ -557,8 +557,8 @@ var scratchblocks2 = function ($) {
|
|||
// Cap block unless argument is "other scripts in sprite"
|
||||
if (!args.length) return;
|
||||
var what = minify(strip_brackets(args[0]).replace(/ v$/, ""));
|
||||
info.flags = ($.inArray(what, strings.osis) > -1) ? []
|
||||
: ["cap"];
|
||||
info.shape = ($.inArray(what, strings.osis) > -1) ? null
|
||||
: "cap";
|
||||
}
|
||||
|
||||
// Define function for getting block info by text.
|
||||
|
|
8
tests/stop-block.txt
Normal file
8
tests/stop-block.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
// cap
|
||||
|
||||
stop [all v]
|
||||
stop [this sprite v]
|
||||
|
||||
// stack
|
||||
|
||||
stop [other scripts in sprite v]
|
Reference in a new issue