1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4'use strict';
5
6var g_results;
7document.addEventListener('DOMContentLoaded', function() {
8  var componentDataScript = document.querySelector(
9      '#telemetry-web-component-data');
10  var data;
11  try {
12    data = JSON.parse(componentDataScript.textContent);
13  } catch (e) {
14    tvcm.showPanic('Could not load data', e.stack || e);
15  }
16  g_results = new $js_class_name;
17  g_results.$data_binding_property = data;
18  document.body.appendChild(g_results);
19});
20