rassie/jessie — comment on commit a0cbe2328294127dbd7bd44653b81d2a5ac55a84
File:  line 0
By cinsoft:

Because getComputedStyle is on the global scope in most browsers. So doing
something like:-

if (getComputedStyle) {
...
}

...would be a potential disaster. The local one may be undefined (due to
feature tests), but the global would resolve.

On Thu, Feb 16, 2012 at 10:27 AM, Balzs Galambosi <
reply@reply.github.com
> wrote:

> Why is it called `getStyleComputed` instead of `getComputedStyle`? It is
> 1) inconsistent with the vanilla DOM Api naming 2) inconsistent with other
> function names inside this collection. Other functions would look similarly
> bad `getSizeInner`, `getSizeViewport`, `findStyleProprietary`.
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/rassie/jessie/commit/a0cbe2328294127dbd7bd44653b81d2a5ac55a84#commitcomment-974057
>