Mercurial > scratch
comparison pydershell/test.js @ 21:1950b0b5bcd8
It's now possible to expose python class instances to JS, if they're declared the right way (for security purposes).
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 07 Sep 2009 15:33:35 -0700 |
parents | 1d62177c5c27 |
children | b7037cd0f375 |
comparison
equal
deleted
inserted
replaced
20:8dd18f864351 | 21:1950b0b5bcd8 |
---|---|
11 } | 11 } |
12 | 12 |
13 //foo(blah); | 13 //foo(blah); |
14 | 14 |
15 bar({blarg: "aweg", bar: function() { return this.blarg; }}); | 15 bar({blarg: "aweg", bar: function() { return this.blarg; }}); |
16 | |
17 var mybaz = baz(); | |
18 print(mybaz.woozle(5)); | |
19 ensureBaz(mybaz); |