phiggins42 / has.js

Pure Feature Detection Library
936 stars 59 forks source link

How to log all hasjs values to console? #93

Closed kmiklas closed 11 years ago

kmiklas commented 11 years ago

Hey All,

How can one log all hasjs values to the console? I'm trying to chase down an IE issue. I tried the following but some values are missing.

    for (var key in has.cache) {
        console.log(key, has.cache[key]);
    }

Thx Keith :)

phiggins42 commented 11 years ago

has.cache gets a key when the test is run ... maybe it isn't running a particular test? console.dir(has.cache) ...

phiggins42 commented 11 years ago

there is also has.all() ... not seeing a .cache, there is has._tests ...

kmiklas commented 11 years ago

Sry everyone this one was pilot error... I missed the entry in the list. I thought that it was sorted.