Skip to content

Commit

Permalink
Documentation and README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
allenrabinovich committed Dec 10, 2010
1 parent 7229579 commit d43ef14
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 4 deletions.
21 changes: 19 additions & 2 deletions build/swfdetect/swfdetect-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,28 @@ else if(uA.ie) {
}


Y.SWFDetect = {
Y.SWFDetect = {

/**
* Returns the version of either the Flash Player plugin (in Mozilla/WebKit/Opera browsers),
* or the Flash Player ActiveX control (in IE), as a String of the form "MM.mm.rr", where
* MM is the major version, mm is the minor version, and rr is the revision.
* @method getFlashVersion
*/

getFlashVersion : function () {
return (String(uA.flashMajor) + "." + String(uA.flashMinor) + "." + String(uA.flashRev));
},


/**
* Checks whether the version of the Flash player installed on the user's machine is greater
* than or equal to the one specified. If it is, this method returns true; it is false otherwise.
* @method isFlashVersionAtLeast
* @return {Boolean} Whether the Flash player version is greater than or equal to the one specified.
* @param flashMajor {int} The Major version of the Flash player to compare against.
* @param flashMinor {int} The Minor version of the Flash player to compare against.
* @param flashRev {int} The Revision version of the Flash player to compare against.
*/
isFlashVersionAtLeast : function (flashMajor, flashMinor, flashRev) {
var uaMajor = makeInt(uA.flashMajor),
uaMinor = makeInt(uA.flashMinor),
Expand Down
21 changes: 19 additions & 2 deletions build/swfdetect/swfdetect.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,28 @@ else if(uA.ie) {
}


Y.SWFDetect = {
Y.SWFDetect = {

/**
* Returns the version of either the Flash Player plugin (in Mozilla/WebKit/Opera browsers),
* or the Flash Player ActiveX control (in IE), as a String of the form "MM.mm.rr", where
* MM is the major version, mm is the minor version, and rr is the revision.
* @method getFlashVersion
*/

getFlashVersion : function () {
return (String(uA.flashMajor) + "." + String(uA.flashMinor) + "." + String(uA.flashRev));
},


/**
* Checks whether the version of the Flash player installed on the user's machine is greater
* than or equal to the one specified. If it is, this method returns true; it is false otherwise.
* @method isFlashVersionAtLeast
* @return {Boolean} Whether the Flash player version is greater than or equal to the one specified.
* @param flashMajor {int} The Major version of the Flash player to compare against.
* @param flashMinor {int} The Minor version of the Flash player to compare against.
* @param flashRev {int} The Revision version of the Flash player to compare against.
*/
isFlashVersionAtLeast : function (flashMajor, flashMinor, flashRev) {
var uaMajor = makeInt(uA.flashMajor),
uaMinor = makeInt(uA.flashMinor),
Expand Down
4 changes: 4 additions & 0 deletions src/swf/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
SWF Utility - Release Notes

3.3.0
Fixed an undefined variable bug
Fixes to documentation

3.2.0
Added allowedDomain flashvar to pass the security settings to YUIBridge.

Expand Down
3 changes: 3 additions & 0 deletions src/swfdetect/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
SWFDetect Utility - Release Notes

3.3.0
Added API documentation

3.2.0
Contribution by Ryan Cannon: #2529113 fixed logic in isFlashVersionAtLeast() to
account for omitted minor and revision versions of the Flash player.
Expand Down
3 changes: 3 additions & 0 deletions src/uploader/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Uploader Utility - Release Notes

3.3.0
Minor changes in documentation

3.2.0
Initial release

0 comments on commit d43ef14

Please sign in to comment.