vexi.js.Object - JS Object

The vexiscript implementation of a standard js object.

Creating Objects

Objects can be created as literals in vexiscript using {}.

Objects can be initialized with content using { key1:val1, key2:val2,... keyn:valn }.

You can create objects in xml by including the vexi://js namespace:

<vexi xmlns:js="vexi://js">
    <js:Object key="value">
        thisobj.key2 = "other value";

Object Behaviour

Unlike in browser javascript, in vexiscript objects do not have any standard properties, and so have a completely free keyspace.

Objects may be cloned and you can place traps on object properties.


Copyright © 2011 The Vexi Project (