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

Cannot call method 'toFixed' of undefined #3

Open
juliangarnier opened this issue Sep 17, 2012 · 5 comments
Open

Cannot call method 'toFixed' of undefined #3

juliangarnier opened this issue Sep 17, 2012 · 5 comments

Comments

@juliangarnier
Copy link

I came across something strange, if I apply some rotation to a face element with both rotateX and rotateY set to 90deg, I get this error :

Uncaught TypeError: Cannot call method 'toFixed' of undefined

But if I change one of the rotation values to something else (like 89deg) everything works correctly.

Exemple here : http://jsfiddle.net/JulianG/X7FZA/

At the end of the css, if you replace one of the 90deg values of ".object-3x10 .lt", the problem disappear.

@piksel
Copy link

piksel commented Jul 13, 2013

I have the same problem but only in Firefox. Webkit-based browsers are fine, but firefox throws [00:33:23.433] (new TypeError("self[p] is undefined", "photon.js", 712))
Using 89.999deg works as a temporary fix.

@juliangarnier
Copy link
Author

@piksel I found a quick fix, can you give it a try?

@piksel
Copy link

piksel commented Jul 17, 2013

@juliangarnier, it clears the error message, but still no lightning unless I change to 89.99.

using firefox v22.0 (32-bit), on windows 7 64-bit.

@juliangarnier
Copy link
Author

Weird. Can you provide a jsfiddle ?

Does this example works on your FF?

@piksel
Copy link

piksel commented Jul 17, 2013

No, but you only used -webkit-prefixes, so I made a fork: http://jsfiddle.net/NGjjM/

Heres chrome (left), and firefox 90deg (right top), firefox 89deg (right bottom)

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

No branches or pull requests

2 participants