For the number of times this pattern of code is repeated (and number of times I imagine that it will be repeated in the future), it seems like it deserves a utility function. Parameters would be:
* current element (`e.target`)
* target element (`inlineWidget.$htmlContent`)
* class to remove (`animating`)
* deferred to resolve (`deferred`)
* catchall callback:
```
    self._codeMirror.removeLineWidget(inlineWidget.info);
    self._removeInlineWidgetInternal(inlineWidget);
```