I am using a custom framework that shortens document.getElementById like so:
function $$(elementId){ return document.getElementById(elementId); }
$$("someDOMid").style.color = "#336699";
I am using JetBrains IntelliJ PHPStorm (although this would apply to WebStorm as well I would presume.
I note that in the IDE, code completion for HTML DOM ids shows up for document.getElementId and also JQuery’s $(“#someId”) function.
How do I get PHPStorm to recognize my framework’s wrapper as the same as the native call, and thus get those very handy DOM code completions?