code-dot-org/blockly-core — pull request #72 by bcjordan (2014-05-01 01:10:59+00:00)
Title: Check if image has been destroyed when updating dimensions

When an auto-sized image is destroyed immediately after being created (as is the case for Artist blocks that are used to draw the sample level), the `` load tag callback used to auto-size the `` tag would find a null reference in imageElement_.

This encodes the assumption that a `field_image` with no `imageElement_` has been destroyed in an `isDestroyed()` method.

Also sets the loading image placeholder size to be a bit larger.