mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-09 14:22:08 -05:00
14 lines
185 B
JavaScript
14 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);
|