Closed GoogleCodeExporter closed 9 years ago
See also: https://github.com/jquerytools/jquerytools/issues/710
Original comment by blacktrashproduct
on 8 May 2012 at 12:54
btw. what's the purpose of
1 * ver[1]
Is it something like parseInt(ver[1], 10)?
Original comment by blacktrashproduct
on 8 May 2012 at 4:03
Yea. That's exactly the purpose.
When version is "10" (string) a comparison against "9" may fail.
Original comment by tipii...@gmail.com
on 9 May 2012 at 2:00
then the line should probably read:
return ver ? [1 * ver[1], 1 * ver[(ver[1] * 1 > 9 ? 2 : 3)]] : [0, 0];
or you assign vars like major and minor first.
Anyway, you get the idea.
Original comment by blacktrashproduct
on 9 May 2012 at 8:23
oops, should be:
return ver ? [1 * ver[1], 1 * ver[(ver[1] * 1 > 9 ? 2 : 3)] * 1] : [0, 0];
Attachment contains the above (tested). Please check it in, so it is not
forgotten.
Or tell me to create a more readable version.
Original comment by blacktrashproduct
on 10 May 2012 at 7:30
Attachments:
Committed:
http://code.google.com/p/flowplayer-core/source/diff?spec=svn794&r=794&format=si
de&path=/flowplayer/trunk/src/javascript/flashembed.js
Original comment by anssip@gmail.com
on 10 May 2012 at 12:04
[deleted comment]
Please, consider my updates on this issue:
https://github.com/jquerytools/jquerytools/pull/818
Original comment by babak.j...@gmail.com
on 25 Jul 2012 at 12:59
Original issue reported on code.google.com by
blacktrashproduct
on 8 May 2012 at 12:51Attachments: