mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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'
|
'esc': 'hide'
|
||||||
|
|
||||||
constructor: (options) ->
|
constructor: (options) ->
|
||||||
options ?= {}
|
@className = @className.replace ' fade', '' if options?.instant or @instant
|
||||||
@className = @className.replace ' fade', '' if options.instant or @instant
|
@closeButton = options.closeButton if options?.closeButton?
|
||||||
@closeButton = options.closeButton if options.closeButton?
|
@modalWidthPercent = options.modalWidthPercent if options?.modalWidthPercent
|
||||||
@modalWidthPercent = options.modalWidthPercent if options.modalWidthPercent
|
|
||||||
super arguments...
|
super arguments...
|
||||||
|
@options ?= {}
|
||||||
|
|
||||||
getRenderData: (context={}) ->
|
getRenderData: (context={}) ->
|
||||||
context = super(context)
|
context = super(context)
|
||||||
|
|
Loading…
Reference in a new issue