Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change tweet text on tweet send.

  • Loading branch information...
commit 5fcff6082eb3850280e8f03f179fa42b00b976b6 1 parent 34c6811
@paulmillr paulmillr authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 app/views/status_view.coffee
View
4 app/views/status_view.coffee
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.