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