mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Fixed "calling remove() for dragging shape will throw an error". close #184
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user