play-co / timestep

GNU General Public License v3.0
16 stars 27 forks source link

ImageScaleView.doOnLoad broken #20

Open roosmaa opened 11 years ago

roosmaa commented 11 years ago

The fix for #13 (commit ce7b88a) seems to have broke the .doOnLoad(...) function for ImageScaleView.

When calling doOnLoad right after the creation of ImageScaleView the _img is null (in doOnLoad), thus an exception is thrown.

var v = new ui.ImageScaleView({
    superview: this,
    image: "path/to/my/image.png"
});
v.doOnLoad(cb);
roosmaa commented 11 years ago

Might be invalid. Removing the project build files removed the problem for me. Might still be the case for regular URLs?