fix the fix to city-list example autoscroll
TBR=esprehn
Review URL: https://codereview.chromium.org/760403002
diff --git a/sky/examples/city-list/index.sky b/sky/examples/city-list/index.sky
index 41de938..47f5208 100644
--- a/sky/examples/city-list/index.sky
+++ b/sky/examples/city-list/index.sky
@@ -31,7 +31,11 @@
<city-list></city-list>
<script>
var cityList = document.querySelector('city-list');
- var scrollBy = Number(location.search.match(/auto=([0-9]+)/)[1]);
+ var scrollBy = 0;
+ var toks = location.search.match(/auto=([0-9]+)/);
+ if (toks) {
+ scrollBy = Number(toks[1]);
+ }
function autoScroll() {
cityList.scrollBy(scrollBy);