mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-14 00:39:57 -04:00
Refer to currentStyle through getters and setters, not through beans.
This commit is contained in:
parent
4db061a048
commit
44ab8ed3a0
2 changed files with 2 additions and 2 deletions
src
|
@ -17,7 +17,7 @@ var Document = this.Document = Base.extend({
|
|||
this.activate();
|
||||
this.layers = [];
|
||||
this.activeLayer = new Layer();
|
||||
this.currentStyle = null;
|
||||
this.setCurrentStyle(null);
|
||||
this.symbols = [];
|
||||
this.views = [new DocumentView(this)];
|
||||
this.activeView = this.views[0];
|
||||
|
|
|
@ -3,7 +3,7 @@ var Item = this.Item = Base.extend({
|
|||
|
||||
initialize: function() {
|
||||
paper.document.activeLayer.appendTop(this);
|
||||
this.style = this.document.currentStyle;
|
||||
this.style = this.document.getCurrentStyle();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue