Nit: slightly more idiomatic thing than "self = this" would be to use onTransitionEnd.bind(this).