Automattic/jetpack — pull request #961 by jeherve (2014-08-08 09:31:46+00:00)
Title: Image Widget: refactor to allow conditional loading of the styles

Use the new WP_Widget class
Move enqueue function inside the widget class
Wrap in a check to see if the widget is active