Skip to content

Commit

Permalink
fix of wrong binding of functions on keyup event
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Grim committed May 6, 2015
1 parent 9fb7676 commit c60b8ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/tmobile.js
Expand Up @@ -24,8 +24,11 @@ function initializeTwister( redirectNetwork, redirectLogin, cbFunc, cbArg ) {
$.mobile.silentScroll(0);
});
// reply text counter both newmsg and dmchat
var $replyText = $( ".post-area-new textarea" );
$replyText.off('input keyup').on('keyup', replyTextInput, function() { replyTextUpdateRemaining(this); });
$('.post-area-new textarea')
.off('input keyup')
.on('keyup', replyTextInput)
.on('keyup', function() { replyTextUpdateRemaining(this); })
;

handlersInstalled = true;
}
Expand Down

0 comments on commit c60b8ef

Please sign in to comment.