Permalink
Browse files

Handle null mainPane.

  • Loading branch information...
1 parent 5b4aadf commit 8c54dc5a319e402e86319e5a98c21d16744200d8 Charles Jolley committed Nov 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 frameworks/foundation/system/root_responder.js
@@ -187,7 +187,7 @@ SC.RootResponder = SC.Object.extend({
// Otherwise, make the main pane the key pane (if it accepts it).
if (!newKeyPane) {
var mainPane = this.get('mainPane') ;
- if (mainPane.get('acceptsKeyPane')) newKeyPane = mainPane ;
+ if (mainPane && mainPane.get('acceptsKeyPane')) newKeyPane = mainPane ;
}
// now notify old and new key views of change after edit

0 comments on commit 8c54dc5

Please sign in to comment.