Use DraftResource.publish from the review dialog.
Review Request #7424 — Created June 13, 2015 and submitted — Latest diff uploaded
The review dialog wasn't using the publish method to publish reviews, which
would still publish but would skip emitting the publishing and published
events. This made it hard to do things from extensions that relied on those
I've also fixed up an incorrect comment and removed an unused var definition.
Used this from an extension and saw that the publishing event was successfully