xuijs / xui

A tiny javascript framework for mobile web apps.
http://xuijs.com
788 stars 106 forks source link

tween on value that is auto by default #32

Closed rekim closed 13 years ago

rekim commented 13 years ago

I was getting the error "Object autoNaN has no method 'toFixed'" when trying to tween 'top'.

The error was avoided by adding top:'0px' to the css so it wasn't defaulting to 'auto'

peterp commented 13 years ago

This functionality is provided by emile: https://github.com/madrobby/emile

the documentation states the following: for some properties you'll need to define defaults on your page's css.

Perhaps this is a property that falls within that category?

filmaj commented 13 years ago

+1 on peterp's comment.

This is really an issue with emile, but am not sure whether even emile wants to deal with it... does the onus lie on the developer in this case to make sure this doesn't happen? Will close for now, if there are still issues with this one I recommend filing an issue on the emile tracker and seeing what people over there think.