function isOverflowed(el) {
return el.scrollWidth > el.offsetWidth || el.scrollHeight > el.offsetHeight;
}
https://jsfiddle.net/y6w7vg0w/ $('#new a')[0].click();
ul
- each subitem in item.items.slice(0,5)
li
a(href="#" title="#{subitem.name}")
| !{subitem.name}