Merge remote-tracking branch 'refs/remotes/LLK/develop' into feature/fencing

This commit is contained in:
griffpatch 2017-02-09 08:54:28 +00:00
commit d740698e25
2 changed files with 7 additions and 2 deletions

View file

@ -42,7 +42,7 @@
"scratch-render": "latest",
"script-loader": "0.7.0",
"stats.js": "0.17.0",
"tap": "10.0.2",
"tap": "10.1.0",
"travis-after-all": "1.4.4",
"webpack": "2.2.1",
"webpack-dev-server": "1.16.3"

View file

@ -439,6 +439,11 @@ Runtime.prototype.startHats = function (requestedHatOpcode,
}
var instance = this;
var newThreads = [];
for (var opts in optMatchFields) {
optMatchFields[opts] = optMatchFields[opts].toUpperCase();
}
// Consider all scripts, looking for hats with opcode `requestedHatOpcode`.
this.allScriptsDo(function (topBlockId, target) {
var potentialHatOpcode = target.blocks.getBlock(topBlockId).opcode;
@ -466,7 +471,7 @@ Runtime.prototype.startHats = function (requestedHatOpcode,
if (optMatchFields) {
for (var matchField in optMatchFields) {
if (hatFields[matchField].value !==
if (hatFields[matchField].value.toUpperCase() !==
optMatchFields[matchField]) {
// Field mismatch.
return;