Fix stop block

This commit is contained in:
blob8108 2013-11-03 19:24:16 +00:00
parent 555b7759e0
commit ae463653e3
2 changed files with 10 additions and 2 deletions

View file

@ -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
View file

@ -0,0 +1,8 @@
// cap
stop [all v]
stop [this sprite v]
// stack
stop [other scripts in sprite v]