Gaia/ExistingStylesPatterns: Difference between revisions

Jump to navigation Jump to search
Line 45: Line 45:


   <code>var tsEnd = (function tsEnd(evt) {
   <code>var tsEnd = (function tsEnd(evt) {
     this.element.removeEventListener('trasitionend', tsEnd)
     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('trasitionend', tsEnd)
     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.
Confirmed users
201

edits

Navigation menu