deprecated the get() method and added find(). the change is backwards compatible

This commit is contained in:
ericdrowell
2013-09-20 14:08:51 -07:00
parent a3b18b4207
commit 85db781630
6 changed files with 193 additions and 161 deletions

View File

@@ -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);
});