Fixed "calling remove() for dragging shape will throw an error". close #184

This commit is contained in:
Anton Lavrenov
2016-11-10 16:41:31 -06:00
parent 7b4e10fba8
commit 9b92331410
7 changed files with 100 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ suite('Enhance', function () {
var imageObj = new Image();
imageObj.onload = function() {
var layer = new Konva.Layer();
var filt = new Konva.Image({
x: 10,
@@ -41,7 +41,7 @@ suite('Enhance', function () {
var imageObj = new Image();
imageObj.onload = function() {
var layer = new Konva.Layer();
darth = new Konva.Image({
x: 10,
@@ -59,16 +59,16 @@ suite('Enhance', function () {
layer.draw();
var tween = new Konva.Tween({
node: darth,
node: darth,
duration: 2.0,
enhance: 1.0,
easing: Konva.Easings.EaseInOut
});
darth.on('mouseover', function() {
tween.play();
});
darth.on('mouseout', function() {
tween.reverse();
});