Merge "resources: Strip '$' and 'mw' from file closures"
[lhc/web/wiklou.git] / resources / src / jquery / jquery.byteLength.js
1 /**
2 * @class jQuery.plugin.byteLength
3 */
4
5 /**
6 * Calculate the byte length of a string (accounting for UTF-8).
7 *
8 * @method byteLength
9 * @deprecated Use `require( 'mediawiki.String' ).byteLength` instead.
10 * @static
11 * @inheritable
12 * @param {string} str
13 * @return {number}
14 */
15 mw.log.deprecate( $, 'byteLength', require( 'mediawiki.String' ).byteLength,
16 'Use require( \'mediawiki.String\' ).byteLength instead.', '$.byteLength' );
17
18 /**
19 * @class jQuery
20 * @mixins jQuery.plugin.byteLength
21 */