ftlabs / ftellipsis

Multi-line ellipsis made possible
MIT License
486 stars 39 forks source link

set()/unset() should bail if no child element will actually be clamped #7

Open contentfree opened 10 years ago

contentfree commented 10 years ago

This is as simple as adding || !this.child.el to the first lines of set and unset

contentfree commented 10 years ago

This lets us do things like the hide "Read more" links based on the presence of containerClass on the container.