on xenial help sign in
fix default arg handling
commit7bced76b71426daa7bc0ce08dfe59ce78e33d54d authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 9 Oct 2015, 00:04 (11 years ago) parenta8d2898
1 file changed+3−3
qml/Stages/DesktopStage.qml+3−3
qml/Stages/DesktopStage.qml+3−3
@@ -161,17 +161,17 @@ Rectangle {
161161 }
162162
163163 function maximize(animated) {
164− animationsEnabled = (animated === undefined) | animated;
164+ animationsEnabled = (animated === undefined) || animated;
165165 minimized = false;
166166 maximized = true;
167167 }
168168 function minimize(animated) {
169− animationsEnabled = (animated === undefined) | animated;
169+ animationsEnabled = (animated === undefined) || animated;
170170 maximized = false;
171171 minimized = true;
172172 }
173173 function unmaximize(animated) {
174− animationsEnabled = (animated === undefined) | animated;
174+ animationsEnabled = (animated === undefined) || animated;
175175 minimized = false;
176176 maximized = false;
177177 }