'use strict';
+'require view';
+'require poll';
+'require request';
'require rpc';
var callLuciRealtimeStats = rpc.declare({
Math.log2 = Math.log2 || function(x) { return Math.log(x) * Math.LOG2E; };
-return L.view.extend({
+return view.extend({
load: function() {
return Promise.all([
this.loadSVG(L.resource('load.svg'))
},
pollData: function() {
- L.Poll.add(L.bind(function() {
+ poll.add(L.bind(function() {
var tasks = [];
for (var i = 0; i < graphPolls.length; i++) {
},
loadSVG: function(src) {
- return L.Request.get(src).then(function(response) {
+ return request.get(src).then(function(response) {
if (!response.ok)
throw new Error(response.statusText);