Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a logic regression in SC.Pane that allowed a double call to occ…

…ur when the defaultResponder was the pane itself.
  • Loading branch information...
commit 2e316ff7917d4f8d3a1b07243cf053f14c20e610 1 parent 3421f17
@publickeating publickeating authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 frameworks/core_foundation/panes/pane.js
View
4 frameworks/core_foundation/panes/pane.js
@@ -777,8 +777,8 @@ SC.Pane = SC.View.extend(SC.ResponderContext,
responder = defaultResponder.tryToPerform(action, evt) ? defaultResponder : null;
}
- // Finally, try ourself.
- if (responder === this || responder === null) {
+ // Finally, if the default responder was missing or failed, try ourself.
+ if (responder === null || responder !== defaultResponder) {
responder = this.tryToPerform(action, evt) ? this : null;
}
Please sign in to comment.
Something went wrong with that request. Please try again.