...
Code Block | ||||
---|---|---|---|---|
| ||||
function increment() {
// x and y must be declared in the parent scope where pjs.import() is used
x += 1;
y += 2;
}
exports.increment = increment; |
Code Block | ||||
---|---|---|---|---|
| ||||
function decrement() {
// x and y must be declared in the parent scope where pjs.import() is used
x -= 1;
y -= 2;
}
exports.decrement = decrement; |
...