conbo-simpleobjectproxy
v1.0.1
Published
Bindable object proxy for ConboJS for browsers that don't support ES6 Proxy
Downloads
8
Maintainers
Readme
SimpleObjectProxy for ConboJS 4
SimpleObjectProxy
is an experimental class for ConboJS when used with browser that don't currently support the ES2015 Proxy
class, to wrap plain JavaScript objects to enable them to be be used with ConboJS two-way data binding, as an alternative to using a Hash
or similar data model.
The SimpleObjectProxy
class can be imported as an AMD, CommonJS or global module.
Getting started
The SimpleObjectProxy
class was inspired by the Apache Flex class of the same name and serves the same purpose.
You can create a new SimpleObjectProxy
using the static create
method:
var obj = {a: 0};
var proxy = SimpleObjectProxy.create(obj);
Please note: SimpleObjectProxy
can only proxy properties that already exist on the source object.
If you're targeting browsers that support the ES2015 Proxy
class, use ObjectProxy.
Make a donation
If you find this project useful, why not buy us a coffee (or as many as you think it's worth)?