Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
Change tweet text on tweet send.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Apr 7, 2012
1 parent 34c6811 commit 5fcff60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/views/status_view.coffee
Expand Up @@ -43,12 +43,10 @@ module.exports = class StatusView extends View
console.log 'Tweet error', error
success: (model, attributes) =>
console.log 'Tweet success', attributes
@$('.status-text').val('').trigger('keydown')

render: =>
super
console.log 'Render', this
# @delegate 'keyup', '.status-text', @updateStatusText
_(['keyup', 'keydown']).each (eventName) =>
@delegate eventName, '.status-text', @updateStatusText
# @modelBind 'change:text', @updateCharacterCount
@delegate 'click', '.status-create-button', @createStatus

0 comments on commit 5fcff60

Please sign in to comment.