mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
parent
d776809e1c
commit
7584872c9f
1 changed files with 4 additions and 4 deletions
|
@ -18,11 +18,11 @@ module.exports = class ModalView extends CocoView
|
|||
'esc': 'hide'
|
||||
|
||||
constructor: (options) ->
|
||||
options ?= {}
|
||||
@className = @className.replace ' fade', '' if options.instant or @instant
|
||||
@closeButton = options.closeButton if options.closeButton?
|
||||
@modalWidthPercent = options.modalWidthPercent if options.modalWidthPercent
|
||||
@className = @className.replace ' fade', '' if options?.instant or @instant
|
||||
@closeButton = options.closeButton if options?.closeButton?
|
||||
@modalWidthPercent = options.modalWidthPercent if options?.modalWidthPercent
|
||||
super arguments...
|
||||
@options ?= {}
|
||||
|
||||
getRenderData: (context={}) ->
|
||||
context = super(context)
|
||||
|
|
Loading…
Reference in a new issue