codecombat/app/views/play/level/modal/NewItemView.coffee
2016-01-25 13:03:29 -08:00

20 lines
No EOL
455 B
CoffeeScript

CocoView = require 'views/core/CocoView'
module.exports = class NewItemView extends CocoView
id: 'new-item-view'
className: 'modal-content'
template: require('templates/play/level/modal/new-item-view')
events:
'click #continue-btn': 'onClickContinueButton'
afterRender: ->
super()
# TODO: Animate icon
initialize: (options) ->
@item = options.item
super()
onClickContinueButton: ->
@trigger 'continue'