Guest User

Untitled

a guest
May 20th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. html = $.get '/foo.html', $CC
  3. alert html
  4. # Shift into:
  5. $.get '/foo.html', (it) ->
  6.   html = it
  7.   alert html
  8.  
  9.  
  10. # ------------
  11.  
  12.  
  13. callSomeFunc $.get '/foo.html', $CC
  14. # Shift into:
  15. $.get '/foo.html', (it) ->
  16.   callSomeFunc it
  17.  
  18.  
  19. # ------------
  20.  
  21.  
  22. data = 'xyz' + $.get '/foo.html', $CC
  23. callSomeFunc data
  24. # Shift into:
  25. $.get '/foo.html', (it) ->
  26.   data = 'xyz' + it
  27.   callSomeFunc data
  28.  
  29.  
  30. # ------------
  31.  
  32.  
  33.  
  34. alert $.post '/foo/bar/' + ($.get '/getFilename', $CC), $CC
  35. callSomeFunc data
  36. # Shift into:
  37. $.get '/getFilename', (it) ->
  38.   $.post '/foo/bar/' + it, (it) ->
  39.     alert it
Add Comment
Please, Sign In to add comment