Hey Markandey,
I looked at the code, but couldn't find any.
YUI could do so, but doesn't do this standard. You need to call node.destroy(true) in order to do so.
Besides, if you have any object-structures like widgets defined, they need to be destroyed as well. Just replacing the node isn't enough.
There is a function onRefreshView, which executes just after refreshView.
Is there a function available which alway executes just before refreshView ? (if defined) ?
Then we can use this to do any necessary cleanup ourselves.
Marco.