Flagrate API documentation

Home ▲
class-method

flagrate.Element.wrap

flagrate.Element.wrap(element, wrapper[, attribute]) → Element

Wraps an element inside another, then returns the wrapper.

This method is similar to http://api.prototypejs.org/dom/Element/wrap/