front end controller performance improvements
This commit is contained in:
parent
ff135aa3e0
commit
73a66e3cef
1 changed files with 0 additions and 4 deletions
4
nodejs/public/javascripts/angularApp.js
vendored
4
nodejs/public/javascripts/angularApp.js
vendored
|
@ -48,10 +48,6 @@ app.controller('MainCtrl', ['$scope', 'arduino', function ($scope, arduino){
|
||||||
|
|
||||||
$scope.RCs = arduino.RCs;
|
$scope.RCs = arduino.RCs;
|
||||||
|
|
||||||
for (var i = $scope.RCs.length - 1; i >= 0; i--) {
|
|
||||||
$scope.RCs[i].state = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.sendRC = function(RC){
|
$scope.sendRC = function(RC){
|
||||||
arduino.sendRC(RC);
|
arduino.sendRC(RC);
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue