Skip to content
Browse files

Don't assume responder was passed in makeFirstResponder

  • Loading branch information...
1 parent 28b2d7f commit a989bf104c61715fc25e77421a31cb677064f888 Devin Torres committed with Charles Jolley
Showing with 3 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 frameworks/foundation/mixins/responder_context.js
View
1 .gitignore
@@ -5,3 +5,4 @@
.gitattributes
*.swp
*.swo
+tmp/
View
4 frameworks/foundation/mixins/responder_context.js
@@ -139,7 +139,7 @@ SC.ResponderContext = {
console.log('%@: makeFirstResponder => %@'.fmt(this, this.responderNameFor(responder)));
}
- responder.set("becomingFirstResponder", YES);
+ if (responder) responder.set("becomingFirstResponder", YES);
this._locked = YES;
this._pendingResponder = null;
@@ -178,7 +178,7 @@ SC.ResponderContext = {
this._pendingResponder = null;
}
- responder.set("becomingFirstResponder", NO);
+ if (responder) responder.set("becomingFirstResponder", NO);
return this ;
},

0 comments on commit a989bf1

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