summaryrefslogtreecommitdiff
path: root/www/wiki/resources/src/jquery/jquery.byteLength.js
blob: 5764ae90ad3556b09de8bd6a8ba25947bbb357f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * @class jQuery.plugin.byteLength
 */

/**
 * Calculate the byte length of a string (accounting for UTF-8).
 *
 * @method byteLength
 * @deprecated Use `require( 'mediawiki.String' ).byteLength` instead.
 * @static
 * @inheritable
 * @param {string} str
 * @return {number}
 */
mediaWiki.log.deprecate( jQuery, 'byteLength', require( 'mediawiki.String' ).byteLength,
	'Use require( \'mediawiki.String\' ).byteLength instead.', '$.byteLength' );

/**
 * @class jQuery
 * @mixins jQuery.plugin.byteLength
 */