destroying an object in javascript -


this know quite basic one, but, please tell me how can destroy object in javascript, created dynamically.

actually have created instance of nicedit javascript text editor, , after taking user's input in , saving entered text, want destroy it.

here's snippet of code im using create instance:

    myniceditor = new niceditor(); 

here nicedit variable global.

and here's how im destroying right now:

    myniceditor = undefined; 

inside function. but, not deleting. know b'coz when create instance using same variable name, i'm able see last entered text, has saved internally.

plz help..

just @ documentation, stated clearly.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -