aino/galleria — pull request #218 by janpub (2011-10-19 14:40:07+00:00)
Title: _scaleImage fix

when gallery is externally rescalled e.g. on window resize event, image might still be null what fired an exception.

See:

_scaleImage : function( image, options ) {
image = image || this._controls.getActive();

// janpub (JH) fix:
// image might be unselected yet
// e.g. when external logics rescales the gallery on window resize events
if(!image)
return;