Implement #_needsRedraw() mechanism in PaperScope and Project, to notify Views of redraws required by changes in appearance.

This commit is contained in:
Jürg Lehni 2011-06-19 23:03:18 +01:00
parent 25b31b6b7d
commit 596cc8f83b
5 changed files with 28 additions and 7 deletions
src/project

View file

@ -57,10 +57,9 @@ var Project = this.Project = Base.extend({
this.activeLayer = new Layer();
},
_changed: function(flags) {
if (flags & ChangeFlag.GEOMETRY) {
// TODO: Mark as requireRedraw
}
_needsRedraw: function() {
if (this._scope)
this._scope._needsRedraw();
},
/**