JSPM

conbo-simpleobjectproxy

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q33300F
  • License MIT

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

Package Exports

  • conbo-simpleobjectproxy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (conbo-simpleobjectproxy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

Make a donation