Skip to content

Commit

Permalink
Support for IEJST 2.0
Browse files Browse the repository at this point in the history
added support for IEJST 2.0
(and potentially any other custom browser)
  • Loading branch information
Cristian Carlesso authored and Cristian Carlesso committed Aug 17, 2012
1 parent 2d91b2c commit d415af8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/preciseTime.js
Expand Up @@ -5,6 +5,12 @@

!function(exports){
var preciseTime = exports.preciseTime;
if ('external' in exports && 'preciseTime' in exports.external){
// wraps cause window.external can't be directly referenced.
preciseTime = function(){
return exports.external.preciseTime();
}
}
// JSC has it right, kudos!
if (!preciseTime) {
// all possibilities + inline "does it work?" check
Expand Down

0 comments on commit d415af8

Please sign in to comment.