v8 and object box access
Hi,
While playing around with v8 (love the embed feature) I noticed that access to the object box is not exposed as it is in js. Is this by design, limitation, planned for future implementation? (syntax change?)
thx
/*j
// save as box.rect.test.js for js object to load
function bang() {
var rect = this.box.getattr("patching_rect")
post(rect[0], (rect[1]+rect[3]+5)+"\n" );
}
Ah thanks for the report. It looks like the js maxobj implementation has a fallback for box attributes, whereas the v8 version does not have this fallback. We can fix this in a future update, but in the meantime for properties of the containing box rather than the object the box contains, you can use this.box.getboxattr() and it will work in both js and v8.
cheers,
/*j