flash upgrader MDL-20841 fix swfobject javascript bug related to http://code.google.com/p/swfobject/issues/detail?id=332

This commit is contained in:
jerome mouneyrac
2009-12-07 03:23:59 +00:00
parent 53bc0353b7
commit e223319801
+7
View File
@@ -1,3 +1,5 @@
//one change has been done related to http://code.google.com/p/swfobject/issues/detail?id=332
//we added lines: 204, 205, 207, 208, 209 (try-catch)
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
@@ -199,7 +201,12 @@ var swfobject = function() {
var counter = 0;
(function(){
if (typeof t.GetVariable != UNDEF) {
try
{
var d = t.GetVariable("$version");
} catch(err) {
//Handle errors here
}
if (d) {
d = d.split(" ")[1].split(",");
ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];