Confirmed users
201
edits
| Line 45: | Line 45: | ||
<code>var tsEnd = (function tsEnd(evt) { | <code>var tsEnd = (function tsEnd(evt) { | ||
this.element.removeEventListener(' | this.element.removeEventListener('transitionend', tsEnd) | ||
}).bind(this)</code> | }).bind(this)</code> | ||
| Line 51: | Line 51: | ||
<code>var tsEnd = (function _tsEnd(evt) { | <code>var tsEnd = (function _tsEnd(evt) { | ||
this.element.removeEventListener(' | this.element.removeEventListener('transitionend', tsEnd) | ||
}).bind(this)</code> | }).bind(this)</code> | ||
Thus, the 'tsEnd' would be the reference, wherever in the function or out of it. | Thus, the 'tsEnd' would be the reference, wherever in the function or out of it. | ||