Skip to content

Commit

Permalink
Remove duplicate curElement assignment code
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuck committed Nov 12, 2011
1 parent da17df8 commit ee9703c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions processing.js
Expand Up @@ -17286,11 +17286,6 @@
// Keyboard Events
//////////////////////////////////////////////////////////////////////////

// Get the DOM element if string was passed
if (typeof curElement === "string") {
curElement = document.getElementById(curElement);
}

// In order to catch key events in a canvas, it needs to be "specially focusable",
// by assigning it a tabindex. If no tabindex is specified on-page, set this to 0.
if (!curElement.getAttribute("tabindex")) {
Expand Down

0 comments on commit ee9703c

Please sign in to comment.