on xenial help sign in
Add semi-colon to javascript code.
c6a706dYing-Chun Liu
Components/Carousel.qml+7−7
@@ -172,21 +172,21 @@ Item {
172 tileWidth,
172 tileWidth,
173 gapToMiddlePhase,
173 gapToMiddlePhase,
174 gapToEndPhase,
174 gapToEndPhase,
175− carousel.drawBuffer)
175+ carousel.drawBuffer);
176
176
177 if (Math.abs(x - contentX) < 1) {
177 if (Math.abs(x - contentX) < 1) {
178 /* We're pressAndHold the selected item and
178 /* We're pressAndHold the selected item and
179 we're in the neighbourhood of radius 1 pixel from it.
179 we're in the neighbourhood of radius 1 pixel from it.
180 Let's emit the pressAndHold signal. */
180 Let's emit the pressAndHold signal. */
181− carousel.pressAndHold(index, delegateItem, delegateItem.y)
181+ carousel.pressAndHold(index, delegateItem, delegateItem.y);
182− return
182+ return;
183 }
183 }
184
184
185− stepAnimation.stop()
185+ stepAnimation.stop();
186− newContentXAnimation.stop()
186+ newContentXAnimation.stop();
187
187
188− newContentX = x
188+ newContentX = x;
189− newContentXAnimation.start()
189+ newContentXAnimation.start();
190 }
190 }
191
191
192 onMovementStarted: {
192 onMovementStarted: {
Dash/GenericScopeView.qml+4−4
@@ -118,12 +118,12 @@ ScopeView {
118 switch (rendererId) {
118 switch (rendererId) {
119 case "grid": {
119 case "grid": {
120 switch (contentType) {
120 switch (contentType) {
121− case "video": return "Generic/GenericFilterGridPotrait.qml"
121+ case "video": return "Generic/GenericFilterGridPotrait.qml";
122− default: return "Generic/GenericFilterGrid.qml"
122+ default: return "Generic/GenericFilterGrid.qml";
123 }
123 }
124 }
124 }
125− case "carousel": return "Generic/GenericCarousel.qml"
125+ case "carousel": return "Generic/GenericCarousel.qml";
126− default: return "Generic/GenericFilterGrid.qml"
126+ default: return "Generic/GenericFilterGrid.qml";
127 }
127 }
128 }
128 }
129
129