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

Doesn't work with requirejs #6

Closed w0rm closed 11 years ago

w0rm commented 11 years ago

Hello, I really like your plugin and it has saved half of my day.

Please remove false from this line because it prevents module to be included with requirejs:

if (false && typeof define === "function" && define.amd) {
STRML commented 11 years ago

Nice catch, I must have put it in there for debugging. Will fix shortly.

By the way, in any case, you could use the requirejs shim config to get around this.

Thanks for opening the issue.

w0rm commented 11 years ago

Thanks for the fast fix, I know about shim config, but if (false && looked really suspicious!