1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

fix comments

This commit is contained in:
Alexander Lukin 2016-06-16 13:04:01 +03:00
parent 609f3d27bf
commit 57a45d1dee

View File

@ -406,7 +406,7 @@
} }
return false; return false;
} }
/** /**
* Get version precisions count * Get version precisions count
* @example * @example
@ -427,6 +427,9 @@
* compareVersions(['1.010.2.1', '1.09.2.1.90']); // 1 * compareVersions(['1.010.2.1', '1.09.2.1.90']); // 1
* compareVersions(['1.10.2.1', '1.10.2.1']); // 0 * compareVersions(['1.10.2.1', '1.10.2.1']); // 0
* compareVersions(['1.10.2.1', '1.0800.2']); // -1 * compareVersions(['1.10.2.1', '1.0800.2']); // -1
*
* @param {Array<String>} versions versions to compare
* @return {Number} comparision result
*/ */
function compareVersions(versions) { function compareVersions(versions) {
// 1) get common precision for both versions, for example for "10.0" and "9" it should be 2 // 1) get common precision for both versions, for example for "10.0" and "9" it should be 2
@ -467,6 +470,10 @@
* opera: "16", * opera: "16",
* phantom: "534" * phantom: "534"
* }); * });
*
* @param {Object} minVersions minVersions map of minimal version to browser
* @param {Boolean} strictMode flag to return false if browser wasn't found in map
* @return {Boolean}
*/ */
function isUnsupportedBrowser(minVersions, strictMode) { function isUnsupportedBrowser(minVersions, strictMode) {
if (strictMode === void 0) { strictMode = false; } if (strictMode === void 0) { strictMode = false; }