daniel-lundin / snabbt.js

Fast animations with javascript and CSS transforms
http://daniel-lundin.github.io/snabbt.js/
MIT License
5.2k stars 330 forks source link

Correct check for undefined variable #85

Open mathiasrw opened 8 years ago

mathiasrw commented 8 years ago

The code was comparing the result of typeof with a variable named undefined.

As typeof returns a string it should compare to 'undefined'


This change is Reviewable