Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Revert "Coerce player version to string in hasPlayerVersion"
Browse files Browse the repository at this point in the history
This reverts commit a186caa.
  • Loading branch information
pipwerks committed Oct 20, 2011
1 parent e61df51 commit 2a8b295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swfobject/src/swfobject.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ var swfobject = function() {
/* Flash Player and SWF content version matching
*/
function hasPlayerVersion(rv) {
var pv = ua.pv, v = (rv+"").split("."); //coerce to string
var pv = ua.pv, v = rv.split(".");
v[0] = parseInt(v[0], 10);
v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
v[2] = parseInt(v[2], 10) || 0;
Expand Down

0 comments on commit 2a8b295

Please sign in to comment.