diff options
Diffstat (limited to 'www/wiki/resources/src/jquery/jquery.byteLength.js')
-rw-r--r-- | www/wiki/resources/src/jquery/jquery.byteLength.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/wiki/resources/src/jquery/jquery.byteLength.js b/www/wiki/resources/src/jquery/jquery.byteLength.js new file mode 100644 index 00000000..5764ae90 --- /dev/null +++ b/www/wiki/resources/src/jquery/jquery.byteLength.js @@ -0,0 +1,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 + */ |