Fix issue with Image.onLoad() events.

naturalWidth/Height seems unreliable.
This commit is contained in:
Jürg Lehni 2013-07-03 18:49:05 -07:00
parent 8aee93b704
commit e87307af41

View file

@ -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);