Setup and teardown events
Setup and teardown events

Prevents things like this.dimensions.clear() triggering
unnecessary redraws.

Change-Id: Ie8d397e42070772bafe5dbbce633e3095fe9ddac

wikimedia/mediawiki-extensions-Kartographer,wikimedia/mediawiki-extensions-Kartographer,wikimedia/mediawiki-extensions-Kartographer