# @cjsx React.DOM React = require('react') Edit = require('./edit') ModalTrigger = require('react-bootstrap/lib/ModalTrigger') markdownIt = require('markdown-it')(linkify: true) helpers = require('../helpers') module.exports = React.createClass displayName: 'Card' componentDidMount: -> @props.card.on 'change', @forceUpdate.bind(@, null) @props.card.on 'change', (model)-> console.log 'change', model getInitialState: ()-> showTools: false editing: false updating: false title: @props.card.get('title') content: @props.card.get('content') onMouseOver: ()-> @setState showTools: true onMouseLeave: ()-> @setState showTools: false render: -> console.log 'Card: render'