~/talk

Events and Messaging in JavaScript

links:none on file
slides:none on file

Covers concrete DOM behavior (addEventListener vs attachEvent), shows that non-bubbling events can still be captured, and explains capture vs bubble order and stopImmediatePropagation’s effect on same-element handlers. Demonstrates event delegation with matches and fallbacks, then refactors a jQuery video-search into components that emit events (example: search.requested with term payload), uses Backbone/Angular patterns, and recommends Monologue, Postal or Amplify for a message bus so components stay testable, reusable and decoupled.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 1:16Understanding events
  3. 3:44Deep dive into DOM events
  4. 6:48Capturing and bubbling
  5. 8:21Advanced event propagation
  6. 13:00Implementing event delegation
  7. 17:54Debugging and best practices
  8. 21:52The Observer pattern
  9. 25:40Building an example app
  10. 31:16Designing component APIs
  11. 37:38Refactoring with components
  12. 41:30Message bus and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.