Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

$l.types.observable raises Object.observe is not a function #47

Open
userabuser opened this issue Mar 28, 2016 · 1 comment
Open

$l.types.observable raises Object.observe is not a function #47

userabuser opened this issue Mar 28, 2016 · 1 comment

Comments

@userabuser
Copy link

Hi,

Unsure if this lib is in active development or now however I noticed issues with your observable functionality.

Object.observe is not supported by Firefox, IE and Safari and was deprecated in Chrome 49.

$l.types.observable is not usable in any environment other than Chrome (>= 36 | <= 49) or Opera (23)

There are a couple of solutions to remedy this for better cross-browser support:

https://github.com/MaxArt2501/object-observe
https://github.com/Polymer/observe-js

Both support dirty checking...

References:
https://esdiscuss.org/topic/an-update-on-object-observe
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/observe

@eser
Copy link
Owner

eser commented Mar 29, 2016

Thank you for reporting this issue and support.

On next release, I'll be looking to use new Proxy object internally if it can cover the functionality. For its browser support an additional polyfill can be used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants