| OLD | NEW |
| (Empty) |
| 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 | |
| 6 var g_results; | |
| 7 document.addEventListener('DOMContentLoaded', function() { | |
| 8 var viewerDataScript = document.querySelector('#viewer-data'); | |
| 9 var data; | |
| 10 try { | |
| 11 data = JSON.parse(viewerDataScript.textContent); | |
| 12 } catch (e) { | |
| 13 tvcm.showPanic('Could not load data', e.stack || e); | |
| 14 } | |
| 15 g_results = new $js_class_name; | |
| 16 g_results.$data_binding_property = data; | |
| 17 document.body.appendChild(g_results); | |
| 18 }); | |
| OLD | NEW |