Have View#_redraw() properly redraw the content even if nothing has changed inside.

This commit is contained in:
Jürg Lehni 2011-08-23 16:36:18 +02:00
parent 79f351e5ee
commit 7a5ca5609f

View file

@ -162,13 +162,14 @@ var View = this.View = PaperScopeItem.extend(/** @lends View# */{
},
_redraw: function() {
this._redrawNeeded = true;
if (this._onFrameCallback) {
// If there's a _onFrameCallback, call it staight away,
// but without requesting another animation frame.
this._onFrameCallback(0, true);
} else {
// Otherwise simply redraw the view now
this.draw(true);
this.draw();
}
},