[tools] Initialize global pages var in callstats.html

R=machenbach@chromium.org
NOTRY=true
BUG=chromium:611010

Review-Url: https://codereview.chromium.org/2391843003
Cr-Commit-Position: refs/heads/master@{#39958}
This commit is contained in:
cbruni 2016-10-04 07:44:45 -07:00 committed by Commit bot
parent 576296ac7a
commit c80619129d

View File

@ -1043,11 +1043,11 @@ code is governed by a BSD-style license that can be found in the LICENSE file.
}
function handleLoadText(text) {
pages = new Pages();
handleLoadJSON(JSON.parse(text));
}
function handleLoadJSON(json) {
pages = new Pages();
versions = Versions.fromJSON(json);
initialize()
showPage(versions.versions[0].pages[0]);