STRML / textFit

A jQuery-free component that quickly fits single and multi-line text to the width (and optionally height) of its container.
https://textfit.strml.net
637 stars 123 forks source link

Allows for options parameter to not be sent #19

Closed bmxpert1 closed 9 years ago

bmxpert1 commented 9 years ago

Some of the examples show textFit(...) called without the options parameter, but this results in an error when trying to call options.hasOwnProperty(key). This commit defaults the options param to an empty object if it isn't supplied.

STRML commented 9 years ago

Thanks. That's helpful.

STRML commented 9 years ago

Published in 2.2.2.