*
* @param {Object} nav An object with atleast a 'userAgent' and 'platform' key.
* Defaults to the global Navigator object.
- * @returns {Object} The resulting client object will be in the following format:
+ * @return {Object} The resulting client object will be in the following format:
* {
* 'name': 'firefox',
* 'layout': 'gecko',
* @param {boolean} [exactMatchOnly=false] Only return true if the browser is matched, otherwise
* returns true if the browser is not found.
*
- * @returns {boolean} The current browser is in the support map
+ * @return {boolean} The current browser is in the support map
*/
test: function ( map, profile, exactMatchOnly ) {
/*jshint evil: true */
*
* Uses window.devicePixelRatio if available, or CSS media queries on IE.
*
- * @method
- * @returns {number} Device pixel ratio
+ * @return {number} Device pixel ratio
*/
$.devicePixelRatio = function () {
if ( window.devicePixelRatio !== undefined ) {
* Implement responsive images based on srcset attributes, if browser has no
* native srcset support.
*
- * @method
- * @returns {jQuery} This selection
+ * @return {jQuery} This selection
*/
$.fn.hidpi = function () {
var $target = this,
/**
* Match a srcset entry for the given device pixel ratio
*
+ * Exposed for testing.
+ *
* @param {number} devicePixelRatio
* @param {string} srcset
* @return {mixed} null or the matching src string
- *
- * Exposed for testing.
*/
$.matchSrcSet = function ( devicePixelRatio, srcset ) {
var candidates,
*
* @param {Object} options
* @param {string} key
- * @returns {string} Localized message
+ * @return {string} Localized message
*/
function msg( options, key ) {
var args = options.params[key] || [];
* values with microsecond precision that are guaranteed to be monotonic. On all other browsers,
* it will fall back to using `Date`.
*
- * @returns {number} Current time
+ * @return {number} Current time
*/
now: ( function () {
var perf = window.performance,