Make sure global paper point works during bootstraping of library already.

This commit is contained in:
Jürg Lehni 2011-04-26 15:53:19 +01:00
parent 0c5595b2a7
commit 9ed0254cde

View file

@ -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 = [];