ComputerScienceHouse / WebDrink-2.0

Rewrite of CSH WebDrink. Includes updated interface and new API.
https://webdrink.csh.rit.edu
10 stars 6 forks source link

Dropping does not reduce credits #33

Closed bencentra closed 7 years ago

bencentra commented 10 years ago

Sometime after I moved the websocket code to app.js, credit deduction stopped working because current_slot stopped being in scope.

bencentra commented 10 years ago

Initial attempt to just move $scope.current_slot from machine.js to app.js failed. For now, moved the code back. I believe I moved it in the first place for Thunderdome (since then the websocket code would need to be reused), but that's on hold.

I should probably go through the angular code to remove my various abuses of $scope, which might help solve the problem.