Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add missing var

  • Loading branch information...
commit 605d6bf7274dfd26f9d5eb81d40869b3e99c2ee3 2 parents 7b64084 + 993dd63
Elijah Insua tmpvar authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 lib/jsdom/level2/events.js
4 lib/jsdom/level2/events.js
@@ -178,7 +178,9 @@ events.EventTarget.getListeners = function getListeners(target, type, capturing)
178 178 };
179 179
180 180 events.EventTarget.dispatch = function dispatch(event, iterator, capturing) {
181   - var target = iterator();
  181 + var listeners,
  182 + target = iterator();
  183 +
182 184 while (target && !event._stopPropagation) {
183 185 listeners = events.EventTarget.getListeners(target, event._type, capturing);
184 186 for (var y = 0; y < listeners.length; y++) {

0 comments on commit 605d6bf

Please sign in to comment.
Something went wrong with that request. Please try again.