On Dec 28, 2:55 pm, Thai Dang Vu <tdan...@gmail.com> wrote:
> I'm using IntelliJ Idea 9.0 which supports code completion/suggestion for
> javascript. It doesn't work with the innerHeight/Width because of this
>
>         jQuery.fn["inner" + name] = function(){ // [ ... ]
>
> Is there anyway to implement the innerHeight and innerWidth in a regular
> way?

Of course it could be done in the "regular" way.  But this is a means
to keep the download size of the library small.  There are numerous
places in the codebase where similar tricks are employed.  One
consistent goal of the jQuery team has been to keep the library as
lean as possible, and such tricks help, with practically no
performance cost.

I believe it would take a great deal of persuasion to convince the
team that supporting code completion in this way is worth the
additional weight of the download, but feel free to try... :-)

  -- Scott

Reply via email to