daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top