Skip to content

Bindable object proxy for ConboJS for browsers that don't support ES6 Proxy

License

Notifications You must be signed in to change notification settings

conbojs/conbo-simpleobjectproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)?

Make a donation

About

Bindable object proxy for ConboJS for browsers that don't support ES6 Proxy

Resources

License

Stars

Watchers

Forks

Packages

No packages published