jenkins-bot has submitted this change and it was merged.
Change subject: jquery.byteLength: Add jsduck documentation
..
jquery.byteLength: Add jsduck documentation
Change-Id: Iee8a5c930b6d2dcb0f5a66aca04e9b18c755d787
---
M maintenance/jsduck/config.json
M resources/src/jquery/jquery.byteLength.js
2 files changed, 13 insertions(+), 6 deletions(-)
Approvals:
Bartosz Dziewoński: Looks good to me, approved
jenkins-bot: Verified
diff --git a/maintenance/jsduck/config.json b/maintenance/jsduck/config.json
index d203baf..6f91cad 100644
--- a/maintenance/jsduck/config.json
+++ b/maintenance/jsduck/config.json
@@ -19,6 +19,7 @@
../../resources/src/jquery/jquery.arrowSteps.js,
../../resources/src/jquery/jquery.autoEllipsis.js,
../../resources/src/jquery/jquery.badge.js,
+ ../../resources/src/jquery/jquery.byteLength.js,
../../resources/src/jquery/jquery.byteLimit.js,
../../resources/src/jquery/jquery.client.js,
../../resources/src/jquery/jquery.colorUtil.js,
diff --git a/resources/src/jquery/jquery.byteLength.js
b/resources/src/jquery/jquery.byteLength.js
index 398937e..0b8f9da 100644
--- a/resources/src/jquery/jquery.byteLength.js
+++ b/resources/src/jquery/jquery.byteLength.js
@@ -1,14 +1,16 @@
/**
- * jQuery.byteLength
- *
- * Calculate the byte length of a string (accounting for UTF-8).
- *
+ * @class jQuery.plugin.byteLength
* @author Jan Paul Posma, 2011
* @author Timo Tijhof, 2012
* @author David Chan, 2013
*/
-jQuery.byteLength = function ( str ) {
+/**
+ * Calculate the byte length of a string (accounting for UTF-8).
+ *
+ * @static
+ */
+jQuery.byteLength = function ( str ) {
// This basically figures out how many bytes a UTF-16 string (which is
what js sees)
// will take in UTF-8 by replacing a 2 byte character with 2 *'s, etc,
and counting that.
// Note, surrogate (\uD800-\uDFFF) characters are counted as 2 bytes,
since there's two of them
@@ -27,5 +29,9 @@
.replace( /[\u0080-\u07FF\uD800-\uDFFF]/g, '**' )
.replace( /[\u0800-\uD7FF\uE000-\u]/g, '***' )
.length;
-
};
+
+/**
+ * @class jQuery
+ * @mixins jQuery.plugin.byteLength
+ */
--
To view, visit https://gerrit.wikimedia.org/r/129960
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iee8a5c930b6d2dcb0f5a66aca04e9b18c755d787
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Krinkle krinklem...@gmail.com
Gerrit-Reviewer: Bartosz Dziewoński matma@gmail.com
Gerrit-Reviewer: Jack Phoenix j...@countervandalism.net
Gerrit-Reviewer: Krinkle krinklem...@gmail.com
Gerrit-Reviewer: MarkTraceur mtrac...@member.fsf.org
Gerrit-Reviewer: Parent5446 tylerro...@gmail.com
Gerrit-Reviewer: jenkins-bot
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits