Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Emulator.prototype.start = function() {
  2.   ...
  3.   var handleGameData = this.handleGameData.bind(this),
  4.       handleGameFiles = this.handleGameFiles.bind(this),
  5.       init = this.init.bind(this),
  6.       run = this.run.bind(this);
  7.  
  8.   loading.then(handleGameData)
  9.          .then(handleGameFiles)
  10.          .then(init)
  11.          .then(run);
  12.    ...
  13. }
  14. Emulator.prototype.handleGameData = function(gamedata) {
  15.   ...
  16. }
  17. Emulator.prototype.handleGameFiles = function(files) {
  18.   ...
  19. }
  20. Emulator.prototype.init = function() {
  21.   ...
  22. }
  23. Emulator.prototype.run = function() {
  24.   ...
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement