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

Vdanilov remove ambiguous condition #35

Open vdanilov opened 5 years ago

vdanilov commented 5 years ago

Hi! The description of a patch is below. Best regards, Vitaly.

Removed condition will always be true unless o is null. In case o equals null first part of whole condition will break circuit.