.remove() without the event+data stripping

.remove() without the event+data stripping


`$("#foo").remove()` removes all event handlers and stored data.
But, sometimes I'd like to temporarily remove an element from the DOM
for later reinjection, in which case the event and data removal
becomes a nuisance.
Is there a way to do that in jQuery - aside from writing your own
`.removeTemp()` plugin?
`$("#foo").remove(true)`
`$("#foo").remove(selector, true)`
feels like a natural way to express this.
any thoughts?
--
Már Örlygsson