add preventDispose property to prevent element unbinding when remove from document. Fixes #312