Chromium Code Reviews| 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 | |
| 5 cr.define('domain_reliability_internals', function() { | |
|
Bernhard Bauer
2014/06/28 11:16:34
You're using this roughly as a class with static m
Deprecated (see juliatuttle)
2014/06/30 16:58:20
Done.
| |
| 6 'use strict'; | |
| 7 | |
| 8 function initialize() { | |
| 9 chrome.send('updateData'); | |
| 10 } | |
| 11 | |
| 12 function onDataUpdated(data) { | |
| 13 //alert(JSON.stringify(data)); | |
|
Bernhard Bauer
2014/06/28 11:16:34
Remove.
Deprecated (see juliatuttle)
2014/06/30 16:58:20
Done.
| |
| 14 jstProcess(new JsEvalContext(data), $('template')); | |
| 15 } | |
| 16 | |
| 17 // Return an object with all of the exports. | |
| 18 return { | |
| 19 initialize: initialize, | |
| 20 onDataUpdated: onDataUpdated, | |
| 21 }; | |
| 22 }); | |
| 23 | |
| 24 document.addEventListener('DOMContentLoaded', | |
| 25 domain_reliability_internals.initialize); | |
| OLD | NEW |