You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the problem here is that getPositions is, sometimes, returning an array with undefined values (because it pushing values into the positions array via positions[child.i] =. The downstream result is that the value of attributes in arrange is undefined, and jQuery is puking on using that to update an element's CSS.
I haven't fully followed the path of everything going on, but one really hacky fix would be to add this after attributes = child_positions[i];:
Alternately, we could check that the array returned by getPositions doesn't contain any undefined values, and clean it up before it gets there. That seems to work well too, but I decided to go with the "simpler" solution for myself.
Both solutions work for me. Since this appears to be a race condition of some sort (or perhaps just bad timing), it probably requires a deeper solution to be solved correctly, but I'm happy with it as-is.
Hi!
Sometime ShapeShift fire "Can't read property 'replace'" error. Please take a look into example:
http://jsfiddle.net/phantomydn/29Lmnkes/
The text was updated successfully, but these errors were encountered: