Update ListPrims.as

Nothing major, just fixed a typo.
This commit is contained in:
doyousketch2 2014-06-22 06:05:49 -04:00
parent 0d7417b5bd
commit 74697446c2

View file

@ -153,7 +153,7 @@ public class ListPrims {
var item:* = interp.arg(b, 1); var item:* = interp.arg(b, 1);
if (list.contents.indexOf(item) >= 0) return true; if (list.contents.indexOf(item) >= 0) return true;
for each (var el:* in list.contents) { for each (var el:* in list.contents) {
// use Scratch comparision operator (Scratch considers the string '123' equal to the number 123) // use Scratch comparison operator (Scratch considers the string '123' equal to the number 123)
if (Primitives.compare(el, item) == 0) return true; if (Primitives.compare(el, item) == 0) return true;
} }
return false; return false;