eser / laroux.js

[Deprecated] Micro jquery substitute for modern browsers
https://eserozvataf.github.io/laroux.js/
Other
417 stars 26 forks source link

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

Open userabuser opened 8 years ago

userabuser commented 8 years ago

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 commented 8 years ago

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.