mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
deprecated the get() method and added find(). the change is backwards compatible
This commit is contained in:
@@ -47,7 +47,7 @@ suite('Blob', function(){
|
||||
var stage = addStage();
|
||||
var layer = new Kinetic.Layer();
|
||||
|
||||
|
||||
|
||||
var blob = new Kinetic.Blob({
|
||||
tension: 0.8,
|
||||
points: [{
|
||||
@@ -73,7 +73,7 @@ suite('Blob', function(){
|
||||
layer.add(blob);
|
||||
stage.add(layer);
|
||||
|
||||
assert.equal(stage.get('Blob')[0].getPoints().length, 4);
|
||||
assert.equal(stage.find('Blob')[0].getPoints().length, 4);
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user