not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
546 B

/* Clear button will clear the canvas */
define([], function() {
function onClearClick() {
PaintApp.clearCanvas();
/* If the activity is shared, will send the instruction to everyone */
if (PaintApp.data.isShared) {
PaintApp.collaboration.sendMessage({
action: 'clearCanvas'
});
}
}
function initGui() {
var clearButton = document.getElementById('clear-button');
clearButton.addEventListener('click', onClearClick);
}
var clearButton = {
initGui: initGui
};
return clearButton;
});