Merge lp:~osomon/ubuntu-ui-toolkit/lp1664620 into lp:ubuntu-ui-toolkit/staging

Proposed by Olivier Tilloy
Status: Merged
Approved by: Zoltan Balogh
Approved revision: 2171
Merged at revision: 2171
Proposed branch: lp:~osomon/ubuntu-ui-toolkit/lp1664620
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 12 lines (+1/-1)
1 file modified
src/imports/Components/Popups/1.3/popupUtils.js (+1/-1)
To merge this branch: bzr merge lp:~osomon/ubuntu-ui-toolkit/lp1664620
Reviewer Review Type Date Requested Status
Cris Dywan Needs Fixing
ubuntu-sdk-build-bot continuous-integration Approve
Zoltan Balogh Approve
Review via email: mp+317228@code.launchpad.net

Commit message

Check that window is not null before accessing its activeFocusItem property.

Description of the change

Check that window is not null before accessing its activeFocusItem property.

To post a comment you must log in.
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

LGTM

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

Test case?

review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/imports/Components/Popups/1.3/popupUtils.js'
--- src/imports/Components/Popups/1.3/popupUtils.js 2017-01-16 17:03:26 +0000
+++ src/imports/Components/Popups/1.3/popupUtils.js 2017-02-14 16:32:05 +0000
@@ -72,7 +72,7 @@
7272
73 var popupObject;73 var popupObject;
74 // If there's an active item, save it so we can restore it later74 // If there's an active item, save it so we can restore it later
75 var prevFocusItem = (typeof window !== "undefined") ? window.activeFocusItem : null;75 var prevFocusItem = (typeof window !== "undefined") && window ? window.activeFocusItem : null;
76 if (params !== undefined) {76 if (params !== undefined) {
77 popupObject = popupComponent.createObject(rootObject, params);77 popupObject = popupComponent.createObject(rootObject, params);
78 } else {78 } else {

Subscribers

People subscribed via source and target branches