My problem:
something: function () {
Ext.blah(); //<-- a javascript statement I want to end up with
Ext //<-- I begin to type it
external. //<-- what Resharper autocompletes when I hit the dot key
external.blah(); //<-- what I end up with without realising.
},
So two questions really:
- What is “external” from “dhtml.js” (a file which does not exist to my knowledge) and why does Resharper have such an attachment to it?
- I did some googling but found nothing comprehensive: is it possible to stop Resharper 7 complaining about implicitly defined global variables on a case by case basis rather than altogether? Perhaps by defining them in a list somewhere within Resharper?
externalis a global object (windowobject property). Seems to be Internet Explorer specific, see here.dhtml.jsis an internal ReSharper file where all standart browser objects and properties are declared. JavaScript is not a static-typed language and there is no way to suggest completely correct items in code completion.If you don’t want to declare your
Extin your real JavaScript files, then you can create a dummy JavaScript file and define yourExtthere. SimplyExt = {}would be enough. It would work even if you don’t reference this file from your real HTMLs.