# @cjsx React.DOM React = require('react') Edit = require('./edit') CardModel = require('../models/card') ModalTrigger = require('react-bootstrap/lib/ModalTrigger') config = require('../../shared/config.json') module.exports = React.createClass displayName: 'Header' componentWillMount: ()-> console.log 'header mounted' @card = new CardModel() @card._isNew = true @card.on 'sync', (model)=> console.log 'sync!!!' @card = new CardModel() @card._isNew = true @forceUpdate() render: ->