treewide: import utility classes explicitly
[project/luci.git] / modules / luci-mod-status / htdocs / luci-static / resources / view / status / load.js
index 646d256d60f9152630479fe488e4a73dbab22e9b..3b302dc5099c45585033dfe87187051eb5bd864d 100644 (file)
@@ -1,4 +1,7 @@
 'use strict';
+'require view';
+'require poll';
+'require request';
 'require rpc';
 
 var callLuciRealtimeStats = rpc.declare({
@@ -13,7 +16,7 @@ var graphPolls = [],
 
 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'))
@@ -86,7 +89,7 @@ return L.view.extend({
        },
 
        pollData: function() {
-               L.Poll.add(L.bind(function() {
+               poll.add(L.bind(function() {
                        var tasks = [];
 
                        for (var i = 0; i < graphPolls.length; i++) {
@@ -205,7 +208,7 @@ return L.view.extend({
        },
 
        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);