diff --git a/www/whiteboard/inner.js b/www/whiteboard/inner.js index 3fbd097e8..5de1f1eb1 100644 --- a/www/whiteboard/inner.js +++ b/www/whiteboard/inner.js @@ -53,7 +53,6 @@ define([ var $type = $('.cp-whiteboard-type'); var $brush = $('.cp-whiteboard-type .brush'); var $move = $('.cp-whiteboard-type .move'); - var $history = $('.cp-whiteboard-history'); var $undo = $('.cp-whiteboard-history .undo'); var $redo = $('.cp-whiteboard-history .redo'); var $text = $('.cp-whiteboard-text button'); @@ -143,7 +142,7 @@ define([ $text.click(function () { $move.click(); - canvas.add(new fabric.Textbox('My Text', { + canvas.add(new Fabric.Textbox('My Text', { fill: brush.color, top: 5, left: 5