MCPcopy Index your code
hub / github.com/mailru/FileAPI / hasPlayerVersion

Function hasPlayerVersion

flash/image/html-template/swfobject.js:531–537  ·  view source on GitHub ↗
(rv)

Source from the content-addressed store, hash-verified

529 /* Flash Player and SWF content version matching
530 */
531 function hasPlayerVersion(rv) {
532 var pv = ua.pv, v = rv.split(".");
533 v[0] = parseInt(v[0], 10);
534 v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
535 v[2] = parseInt(v[2], 10) || 0;
536 return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
537 }
538
539 /* Cross-browser dynamic CSS creation
540 - Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php

Callers 3

matchVersionsFunction · 0.70
canExpressInstallFunction · 0.70
swfobject.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…