added _setPoints so that points setter methods could leverage the same logic that was in the setAttrs() method

This commit is contained in:
Eric Rowell
2012-05-13 11:58:40 -07:00
parent 7f8a174b51
commit ec415c55de
7 changed files with 98 additions and 56 deletions

View File

@@ -1271,6 +1271,12 @@ Test.prototype.tests = {
line.on('dragend', function() {
line.saveData();
});
line.setPoints([1, 2, 3, 4]);
test(line.getPoints()[0].x === 1, 'first point x should be 1');
line.setPoints([73, 160, 340, 23]);
test(line.getPoints()[0].x === 73, 'first point x should be 73');
},
'SHAPES - add dashed line': function(containerId) {
var stage = new Kinetic.Stage({