clearf/javascript_atm — pull request #4 by aj2w (2013-07-24 01:39:51+00:00)
Title: ATM App

The app works with full functionality, though my attempts at DRYing the code by putting certain activities into functions doesn't seem to work properly.

Therefore, the latest fully working commit is the one titled "DRYed up reddify function." In the first commit after that ("DRYed up depositing..."), I attempted to pull the deposit activities into a separate function. I can still deposit money to both accounts, but only once. I can't do it multiple times. In the next commit ("Further DRYing...") I tried to move the withdrawing/overdraft protection functionality into a separate activitiy. This didn't work at all (can't withdraw anything), though the variable assignment seems to be fine...

Any help on the DRYing issues would be much appreciated!

Thanks,
Anuj