mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
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:
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user