mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-04 17:00:28 -04: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() {
|
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.document = null;
|
||||||
this.documents = [];
|
this.documents = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue