| Index: appengine_apps/trooper_o_matic/model/json-graph-data.html
|
| diff --git a/appengine_apps/trooper_o_matic/model/json-graph-data.html b/appengine_apps/trooper_o_matic/model/json-graph-data.html
|
| deleted file mode 100644
|
| index 0b5adbb3441a4bdcc8b56f66cb3c59fd34cc1525..0000000000000000000000000000000000000000
|
| --- a/appengine_apps/trooper_o_matic/model/json-graph-data.html
|
| +++ /dev/null
|
| @@ -1,30 +0,0 @@
|
| -<!--
|
| -Copyright 2014 The Chromium Authors. All rights reserved.
|
| -Use of this source code is governed by a BSD-style license that can be
|
| -found in the LICENSE file.
|
| --->
|
| -
|
| -<link rel="import" href="../lib/net.html">
|
| -
|
| -<script>
|
| -function JSONGraphData(url) {
|
| - this.rowItemsAvailable = false;
|
| - this._url = url;
|
| - this._formattedDataCache = null;
|
| -}
|
| -
|
| -JSONGraphData.prototype.get = function() {
|
| - if (this._formattedDataCache) {
|
| - return Promise.resolve(this._formattedDataCache);
|
| - }
|
| - var self = this;
|
| - return net.json({url: this._url}).then(function(data) {
|
| - // Convert timestamps to Date objects.
|
| - data.rows.forEach(function(row) {
|
| - row[0] = new Date(row[0] * 1000);
|
| - });
|
| - self._formattedDataCache = data;
|
| - return data;
|
| - });
|
| -};
|
| -</script>
|
|
|