Chromium Code Reviews| Index: sky/examples/city-list/index.sky |
| diff --git a/sky/examples/city-list/index.sky b/sky/examples/city-list/index.sky |
| index 45cfe145ee446c5e0bf91538133b305f8d00e3c8..41de93817ca58a605754235ead7abf1c2519f1e1 100644 |
| --- a/sky/examples/city-list/index.sky |
| +++ b/sky/examples/city-list/index.sky |
| @@ -31,7 +31,7 @@ window.startLoad = new Date().getTime(); |
| <city-list></city-list> |
| <script> |
| var cityList = document.querySelector('city-list'); |
| - var scrollBy = location.search.match(/auto=([0-9]+)/)[1]; |
| + var scrollBy = Number(location.search.match(/auto=([0-9]+)/)[1]); |
|
esprehn
2014/11/25 07:50:21
match returns null if it doesn't match anything, t
rafaelw
2014/11/28 04:22:48
Woops. Good catch. Fixed: https://codereview.chrom
|
| function autoScroll() { |
| cityList.scrollBy(scrollBy); |
| @@ -39,7 +39,6 @@ window.startLoad = new Date().getTime(); |
| } |
| if (scrollBy) { |
| - console.log('Autoscroll by ' + scrollBy); |
| setTimeout(function() { |
| requestAnimationFrame(autoScroll); |
| }, 200) |