on xenial help sign in
Add semi-colon to javascript code.
commitc6a706ddf772efa9543252d4bc4ecc13e162a9eb authorYing-Chun Liu <paul.liu@canonical.com> dateThu 18 Jul 2013, 00:27 (13 years ago) parent4478f35
2 files changed+11−11
Components/Carousel.qml+7−7 Dash/GenericScopeView.qml+4−4
Components/Carousel.qml+7−7
@@ -172,21 +172,21 @@ Item {
172172 tileWidth,
173173 gapToMiddlePhase,
174174 gapToEndPhase,
175− carousel.drawBuffer)
175+ carousel.drawBuffer);
176176
177177 if (Math.abs(x - contentX) < 1) {
178178 /* We're pressAndHold the selected item and
179179 we're in the neighbourhood of radius 1 pixel from it.
180180 Let's emit the pressAndHold signal. */
181− carousel.pressAndHold(index, delegateItem, delegateItem.y)
182− return
181+ carousel.pressAndHold(index, delegateItem, delegateItem.y);
182+ return;
183183 }
184184
185− stepAnimation.stop()
186− newContentXAnimation.stop()
185+ stepAnimation.stop();
186+ newContentXAnimation.stop();
187187
188− newContentX = x
189− newContentXAnimation.start()
188+ newContentX = x;
189+ newContentXAnimation.start();
190190 }
191191
192192 onMovementStarted: {
Dash/GenericScopeView.qml+4−4
@@ -118,12 +118,12 @@ ScopeView {
118118 switch (rendererId) {
119119 case "grid": {
120120 switch (contentType) {
121− case "video": return "Generic/GenericFilterGridPotrait.qml"
122− default: return "Generic/GenericFilterGrid.qml"
121+ case "video": return "Generic/GenericFilterGridPotrait.qml";
122+ default: return "Generic/GenericFilterGrid.qml";
123123 }
124124 }
125− case "carousel": return "Generic/GenericCarousel.qml"
126− default: return "Generic/GenericFilterGrid.qml"
125+ case "carousel": return "Generic/GenericCarousel.qml";
126+ default: return "Generic/GenericFilterGrid.qml";
127127 }
128128 }
129129