aFarkas/html5shiv — comment on commit f634a0fee47c73ee6a80dd1f2fe1b4aa24c5517c
File: src/html5shiv-printshiv.js line 38
By jdalton:

Ok so I was thinking about this and something better than a timestamp would be just a simple object:

~~~ js
token = {};
~~~

then later

~~~ js
if (cacheToken != token) {
cacheNodes = {};
cacheToken = token;
}
~~~

this way calls that happen under a `ms` will still trip the cache kill.

~~~ js
html5.setElements(...);
var a = document.createElement(...);
html5.setElements(...);
var b = document.createElement(...);
~~~