mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-14 00:39:57 -04:00
Use correct flags in _changed() call.
This commit is contained in:
parent
554047ae38
commit
e52d2a08b8
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ var Raster = this.Raster = PlacedItem.extend(/** @lends Raster# */{
|
|||
* @type Context
|
||||
* @bean
|
||||
*/
|
||||
getContext: function() {
|
||||
getContext: function(/* notifyChange */) {
|
||||
if (!this._context)
|
||||
this._context = this.getCanvas().getContext('2d');
|
||||
// Support a hidden parameter that indicates if the context will be used
|
||||
|
@ -163,7 +163,7 @@ var Raster = this.Raster = PlacedItem.extend(/** @lends Raster# */{
|
|||
this._size = Size.create(canvas.width, canvas.height);
|
||||
this._image = null;
|
||||
this._context = null;
|
||||
this._changed(Change.GEOMETRY);
|
||||
this._changed(Change.GEOMETRY | Change.PIXELS);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue