all methods are now copied to Collection prototype so that you don't have to use the each() method all the time

This commit is contained in:
Eric Rowell
2014-01-19 21:35:28 -08:00
parent 79f86f2fe0
commit f1b1c58166
24 changed files with 112 additions and 37 deletions

View File

@@ -279,17 +279,17 @@ suite('Layer', function() {
layer.add(circle);
stage.add(layer);
assert.equal(layer.isHitGraphEnabled(), true);
assert.equal(layer.hitGraphEnabled(), true);
assert.equal(layer.shouldDrawHit(), true);
layer.disableHitGraph();
assert.equal(layer.isHitGraphEnabled(), false);
assert.equal(layer.hitGraphEnabled(), false);
assert.equal(layer.shouldDrawHit(), false);
layer.enableHitGraph();
assert.equal(layer.isHitGraphEnabled(), true);
assert.equal(layer.hitGraphEnabled(), true);
assert.equal(layer.shouldDrawHit(), true);
});
});