basiljs/basil.js

transform position throwing an error

Closed this issue · 4 comments

ffd8 commented

Just ran into this today:

var sel = selection();
transform(sel, "position", [50, 50]);

throws an 'TypeError: undefined is not an object'

trych commented

Yes, I ran into this the other day, too. This seems to be related to the isArray() change I did recently. Damn. Unfortunately I will have no time to look into this in the next few days. Is it an option to use

var sel = selection();
transform(sel, "x", 50);
transform(sel, "y", 50);

instead?

trych commented

Ok, my suggestion does not work. Damn, this really breaks the transform() function. I will see if I can do a quick fix, because I need this to work for my course as well. 😆

ffd8 commented

Haha no rush, just happy to learn it's not unique to our setup. Great when you have a chance to check it out.

trych commented

Ok, this was a really stupid mistake by me (not checking for null or undefined). Is fixed now via #310. Cheers!