mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-09 14:22:08 -05:00
13 lines
185 B
JavaScript
13 lines
185 B
JavaScript
/** the parent */
|
|
var box = {};
|
|
|
|
/** @namespace */
|
|
box.holder = {}
|
|
|
|
box.holder.foo = function() {
|
|
/** the counter */
|
|
this.counter = 1;
|
|
}
|
|
|
|
box.holder.foo();
|
|
print(box.holder.counter);
|