Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ <h4>Loading tool set...</h4>
var socket = io();
var runningTest = false;
var $draw = $('#drawarea');

// initially set "update" function to NOOP in case we're already getting websocket messages
// TODO: don't start listening to websocket until the update method is actually set
$draw.update = function() {};

var pen = {};
var lastPen = {};
var resumePen = null;
Expand Down