luda
Version:
A library helps to build cross-framework UI components.
16 lines (12 loc) • 387 B
text/coffeescript
import luda from '../base/luda.coffee'
import '../collection/first.coffee'
import './append-to.coffee'
import './before.coffee'
luda.include
wrapAll: (selector) ->
return this unless .length
structure = luda selector
.before structure
wrapper = structure.els[0]
wrapper = wrapper.firstElementChild while wrapper.children.length
wrapper