Fix #3106 introduced by b38a6c50

This commit is contained in:
Nick Winter 2015-10-13 08:22:13 -07:00
parent d776809e1c
commit 7584872c9f

View file

@ -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)