Refer to currentStyle through getters and setters, not through beans.

This commit is contained in:
Jürg Lehni 2011-03-05 00:03:28 +00:00
parent 4db061a048
commit 44ab8ed3a0
2 changed files with 2 additions and 2 deletions
src
document
item

View file

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

View file

@ -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();
},
/**