Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateful canvas throws "TypeError: destination is undefined" #3498

Closed
manni05 opened this issue Dec 5, 2016 · 2 comments · Fixed by #3537
Closed

Stateful canvas throws "TypeError: destination is undefined" #3498

manni05 opened this issue Dec 5, 2016 · 2 comments · Fixed by #3537
Labels

Comments

@manni05
Copy link

manni05 commented Dec 5, 2016

Version

1.7.0
1.7.1

Test Case

        function run() {
                fabric.Object.prototype.objectCaching = false;
                var canvas = new fabric.Canvas('c', {width: 800, height: 600, stateful: true});
                var circle = new fabric.Circle({
                    radius: 50,
                    fill: '#eef',
                    left: 100,
                    top: 100
                });

                var text = new fabric.Text('hello world', {
                    fontSize: 30,
                    left: 150,
                    top: 100
                });

                canvas.add(circle);
                canvas.add(text);
            }

Steps to reproduce

Create a stateful canvas, add 2 objects, select them an try to move the selection

Expected Behavior

The selection moves

Actual Behavior

Gives "TypeError: destination is undefined"
The exception is thrown in function extend while executing function saveProps.

@asturur
Copy link
Member

asturur commented Dec 5, 2016

would you give me a fiddle please? so i can investigate better.

@manni05
Copy link
Author

manni05 commented Dec 5, 2016

Try https://jsfiddle.net/b8ctv990/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants