Skip to content

Commit

Permalink
comment: added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammednumaan authored Mar 16, 2024
1 parent 29da0c3 commit db052fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function generateGrid(size){

// function to handle sketch events
function sketchHandler(){


// an abort controller to abort requests (in this case an event)
let abortController = new AbortController();

// callbacks that can later be referenced to remove respective listeners
Expand Down Expand Up @@ -86,4 +87,4 @@ sketchSize.addEventListener('input', (e) => {

// initial grid render (16x16) and attach listeners
generateGrid(16);
sketchHandler();
sketchHandler();

0 comments on commit db052fa

Please sign in to comment.