context = window broadcastActions = window.JK.Actions.Broadcast; rest = window.JK.Rest(); Broadcast = React.createClass({ displayName: 'Broadcast Notification' handleNavigate: (e) -> href = $(e.currentTarget).attr('href') if href.indexOf('http') == 0 e.preventDefault() window.JK.popExternalLink(href) broadcastActions.hide.trigger() notNow: (e) -> e.preventDefault(); rest.quietBroadcastNotification({broadcast_id: this.props.notification.id}) broadcastActions.hide.trigger() createMarkup: () -> {__html: this.props.notification.message}; render: () -> `