Which browsers support Object.observe?

Which browsers, if any, support Object.observe ? I am surprised that I can not find information about this.

(And do you know of any estimated arrival times for this feature?)

About Object.observe: "Object.observe allows direct observation of changes to ECMAScript objects. This allows the observer to receive a time-ordered sequence of change records that describe the set of changes that occurred with the set of observed objects." - see ecmascript.org , section "Solution".)




Edit November 2015: Obviously Object.observe is canceled:

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

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

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

+56
javascript browser observable object.observe
Jan 12 '14 at 9:21
source share
7 answers

No browsers. If this is not the case today, it will someday someday , and then that may be the accepted answer.

+4
Jan 15 '16 at 4:25
source share

You can use kangax browser compatibility table for Object.observe

This is part of the ECMA Script 7 spec, it seems. Fortunately, at the time of this writing, my current Chrome 33 browser is the only one that supports it :)

If you want to enable it in Chrome 33,

  • Visit chrome://flags/

  • And enable Enable Experimental JavaScript

+31
Jan 12 '14 at 9:24
source share

Polymer is a new and promising framework that intends to implement web components for which Object.observe() is an integral part.

It provides a polyfill implementation for evergreen browsers; most recent available. Moreover, they monitor that the browser has built-in support for this feature , which speeds up their implementation.

This polyfill is available as a separate GitHub library.

+8
Mar 18 '14 at 15:08
source share

Chrome 35+ supports the Object.observe () method.

Read more here: html5rocks

Update: it has moved to chrome 36 beta.

+3
May 21 '14 at 17:10
source share

It used to be present in both Chrome and Opera, but this feature was removed from both browsers after the standards committee withdrew the offer for this feature !

enter image description here

+1
Jul 14 '17 at 23:39
source share

Chrome 36+, Opera 30+. My favorite way to answer these questions is: http://caniuse.com . It is clear, consistent and has an instant search.

0
Jul 23 '15 at 4:28
source share

Disclaimer: I am the author of object-observer .

The answer to basarat is definitely the right one - no browser currently supports it.

Most poly regiments performing "dirty checks" are not the best way to achieve compliance with IMHO.

It is best to choose one of several libraries that provide the same functionality as using your own proxy features, object-observer , being just one of them.

0
Feb 12 '17 at 20:06 on
source share



All Articles