mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Fix issue with Image.onLoad() events.
naturalWidth/Height seems unreliable.
This commit is contained in:
parent
8aee93b704
commit
e87307af41
1 changed files with 0 additions and 4 deletions
|
@ -239,11 +239,7 @@ var Raster = Item.extend(/** @lends Raster# */{
|
|||
if (this._canvas)
|
||||
CanvasProvider.release(this._canvas);
|
||||
this._image = image;
|
||||
/*#*/ if (options.browser) {
|
||||
this._size = new Size(image.naturalWidth, image.naturalHeight);
|
||||
/*#*/ } else if (options.node) {
|
||||
this._size = new Size(image.width, image.height);
|
||||
/*#*/ } // options.node
|
||||
this._canvas = null;
|
||||
this._context = null;
|
||||
this._changed(/*#=*/ Change.GEOMETRY);
|
||||
|
|
Loading…
Reference in a new issue