Set default styles for Project#currentStyle.

This commit is contained in:
Jürg Lehni 2011-05-29 21:35:46 +01:00
parent 2cbc6ae392
commit 78f43b52b9

View file

@ -41,6 +41,14 @@ var Project = this.Project = Base.extend({
// Push it onto this._scope.projects and set index:
this._index = this._scope.projects.push(this) - 1;
this._currentStyle = PathStyle.create(null);
this.setCurrentStyle({
strokeWidth: 1,
strokeCap: 'butt',
strokeJoin: 'miter',
miterLimit: 10,
dashOffset: 0,
dashArray: []
});
this._selectedItems = {};
this._selectedItemCount = 0;
// Activate straight away so paper.project is set, as required by