JavaScript Getters and Setters

IE 9: Object literal syntax & Ojbect.defineProperty (any object)
Object.getOwnPropertyDescriptor() method to query getter and setter methods

IE 8: Object.defineProperty (DOM objects only)
Object.getOwnPropertyDescriptor() method to query getter and setter methods

IE 7: closure

Other New: Object literal syntax & Ojbect.defineProperty (any object)
In WebKit Object.defineProperty does not work with DOM objects.

Other Old: Object literal syntax & __defineGetter__() & __defineSetter__() & closure
__lookupGetter__() & __lookupSetter__()

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s