Skip to content

Commit

Permalink
don't error out trying to remove event that doesn't exist (orslumen)
Browse files Browse the repository at this point in the history
  • Loading branch information
smparkes committed Aug 19, 2010
1 parent 861254e commit d1eaaaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/window/event.js
Expand Up @@ -34,6 +34,9 @@ function __removeEventListener__(target, type, fn){
target.uuid = $events.length;
$events[target.uuid] = {};
}
if (!$events[target.uiid]) {
return;
}
if ( !$events[target.uuid][type] ){
$events[target.uuid][type] = [];
}
Expand Down

0 comments on commit d1eaaaf

Please sign in to comment.