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.

21 lines
608 B

  1. /* Redo button will redo the canvas using the history */
  2. define([], function () {
  3. function redo() {
  4. var data = PaintApp.redoCanvas();
  5. }
  6. function initGui() {
  7. var redoButton = document.getElementById('redo-button');
  8. PaintApp.elements.redoButton = redoButton;
  9. redoButton.addEventListener('click', redo);
  10. }
  11. function hideGui() {
  12. var redoButton = document.getElementById('redo-button');
  13. PaintApp.elements.redoButton = redoButton;
  14. PaintApp.elements.redoButton.disabled = 'none';
  15. }
  16. var redoButton = {
  17. initGui: initGui,
  18. hideGui: hideGui
  19. };
  20. return redoButton;
  21. });