-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Group.prototype.toObject() does not clone objects in objects array correctly #260
Comments
Groups are async (like images) so you need a callback:
|
Still getting the same error in this case: group.toDataURL(function(data){
window.open(data);
}); TypeError: Cannot read property 'type' of undefined For any level of reference, both of the objects are Images. |
Which fabric version? |
Just pulled and built the latest. |
Strange. Which browser? I just check with 0.9.6 in kitchensink's console — On Mon, Sep 10, 2012 at 7:25 PM, Jeff Lembeck [email protected]:
|
Chrome 21.0.1180.89, Mac OSX I'm getting the same error on kitchen sink. canvas.getActiveGroup().toDataURL(function(data){ |
And you have an active group selected? |
Nevermind. Did not work in Firefox. Doesn't work when I use images, only when I use basic shapes. |
Yes, in that Chrome window: canvas.getActiveGroup(); |
Same error. It seems there is no callback function in the clone function of images: |
Yep. Reproduced. |
What I was attempting:
var group = canvas.getActiveGroup();
group.toDataURL();
This returns this error:
TypeError: Cannot read property 'type' of undefined
After doing some inspection, this seems to happen during a .toObject() transfer of the group.
This can be seen here:
https://gist.github.com/57116620ec75efc10fb9
The text was updated successfully, but these errors were encountered: