Properly defer send_pointer_update setTimeout

(imported from commit 02a9c648eb420c8aebe84386cbb708bec96ca2e7)
This commit is contained in:
Keegan McAllister 2012-10-26 22:48:21 -04:00
parent 92acd7bd1c
commit 36f4ce0c0b
1 changed files with 3 additions and 1 deletions

View File

@ -184,7 +184,9 @@ function send_pointer_update() {
setTimeout(send_pointer_update, 1000);
}
$(setTimeout(send_pointer_update, 1000));
$(function () {
setTimeout(send_pointer_update, 1000);
});
function update_selected_message(message, opts) {
opts = $.extend({}, {