Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ModalProvider {
- static func makeModalWindowOne(callback) {
- AcceptButton acceptButton = new AcceptButton()
- ModalWindow mw = new ModalWindow()
- mw.addButton(acceptButton)
- acceptButton.onClick() {
- callback()
- }
- }
- static func makeModalWindow2(callback) {
- // similar to previous but with different number of buttons
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement