Monday 15 March 2010

javascript - Is it possible to know when a property is deleted? -


  var o = {a: 1}; Oye. Delete;   

I know that when the property is destroyed, recipients and setter essays want to be notified as descriptors.

Is this possible?

If you can control your environment and make sure it is up to date then great. This article will help about Object.observer.

If you do not forget this, if you are catering for older browsers, you probably have to write it yourself always display it behind your mind. New browser 'Worker threads' And it is probably the same object which is the object. Old browsers execute javascript on a thread so that you do not have this advantage.

You have to use a timer, but just "one", not many ... John Reciig (Mr. jQuery) has written several articles about the timer and how he executed on a thread. Here's one of them:

Note I have not tried myself, so I do not know when the performance will be acceptable.

No comments:

Post a Comment