Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which browsers support Object.observe?

Which browsers, if any, support Object.observe? I'm surprised I'm unable to find any info on this.

(And are you aware about any estimated times of arrival for this feature?)

About Object.observe: "Object.observe allows for the direct observation of changes to ECMAScript objects. It allows an observer to receive a time-ordered sequence of change records which describe the set of changes which took place to the set of observed objects." — see ecmascript.org, the Solution section.)


Edit November 2015: Apparently Object.observe has been cancelled:

http://www.infoq.com/news/2015/11/object-observe-withdrawn

https://esdiscuss.org/topic/an-update-on-object-observe
"I plan to withdraw the Object.observe proposal from TC39"

https://esdiscuss.org/topic/save-object-observe-please-make-weakmap-weakset-observable
"Save Object.observe()! (please)"

like image 420
KajMagnus Avatar asked Jan 12 '14 09:01

KajMagnus


People also ask

Can I use object observe?

Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The Object. observe() method was used for asynchronously observing the changes to an object.

Can I use observe?

1a : to take notice When your teacher is demonstrating something, sit up and observe! b : to make observations : watch Perform your tricks, and we will observe. 2 : remark, comment In her speech she observed on the changing climate.


1 Answers

You can use kangax's Browser Compatibility Table for Object.observe

It is part of ECMA Script 7 Specifications, it seems. Luckily, at the time of this writing, my current browser, Chrome 33, is the only one which supports it :)

If you like to enable it in Chrome 33,

  1. Visit chrome://flags/

  2. And enable Enable Experimental JavaScript

like image 121
thefourtheye Avatar answered Oct 06 '22 12:10

thefourtheye