Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class ModalProvider {
  2. static func makeModalWindowOne(callback) {
  3. AcceptButton acceptButton = new AcceptButton()
  4. ModalWindow mw = new ModalWindow()
  5. mw.addButton(acceptButton)
  6. acceptButton.onClick() {
  7. callback()
  8. }
  9. }
  10. static func makeModalWindow2(callback) {
  11. // similar to previous but with different number of buttons
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement