mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Make sure global paper point works during bootstraping of library already.
This commit is contained in:
parent
0c5595b2a7
commit
9ed0254cde
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@
|
|||
***/
|
||||
|
||||
var paper = new function() {
|
||||
// Have a pointer to the paper object already during the 'bootstraping' so code
|
||||
// can rely on it being there all the time.
|
||||
var paper = this;
|
||||
|
||||
this.document = null;
|
||||
this.documents = [];
|
||||
|
|
Loading…
Reference in a new issue