vexi.js.Proxy - Proxy Object

The proxy object is an alternative map object to the standard js object, which supports a 'range trap' Properties to trap on the accessing/adding/removing of properties.

Properties

Property Type Initial Value Description

Properties

N/A

N/A

The Properties property is a meta-property representing a gateway for accessing the properties of the proxy object.

Placing a trap on this allows the interception of all read and writes to this proxy object

 // a (range) read trap
 proxy.Properties ++= function() { };
 // a (range) write trap
 proxy.Properties ++= function(v) { };

 


Copyright © 2011 The Vexi Project (vexi.sourceforge.net)