Closed davidsteinberger closed 9 years ago
Have you enabled the browser
defs? I.e. something like this in your .tern-project
file:
{
"libs": ["browser"],
}
On my end I can confirm that document.body.
is giving correct completions.
As for the fn signature on("click", selector, data, function(e)
does not give completions for e
, but on("click", function(e)
does.
This might be obvious, but since I was the one having the issue, I might as well make the point: tern
autocompletes only on packages installed through npm
, hence you won't get autocompletion for document
unless you installed npm install browser
. I hope this does save somebody's time some day.
After the install I can't get e.g. browser support to work. These examples do not work: