Suppose you have a routine like the following to wire up click event handlers
getElements(\".board>div\").forEach(function(elem){ elem.addEventListener(\"cl
Your use of this is valid. To suppress the this errors in your event handler add /*jshint validthis: true */ to the top of the function.
this
/*jshint validthis: true */
Found that here: https://stackoverflow.com/a/16553290/552067