diff --git a/app/views/core/ModalView.coffee b/app/views/core/ModalView.coffee index 801563fa5..95fda6cb9 100644 --- a/app/views/core/ModalView.coffee +++ b/app/views/core/ModalView.coffee @@ -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)