From: Timo Tijhof Date: Wed, 30 Apr 2014 22:32:57 +0000 (+0200) Subject: jsduck: Add @inheritable to static methods from jQuery plugins X-Git-Tag: 1.31.0-rc.0~15940^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=c6a3d159774a8f2aa0cb02596eb46de3c349e9fb;p=lhc%2Fweb%2Fwiklou.git jsduck: Add @inheritable to static methods from jQuery plugins Follows-up aa34a71, 28ae883. Forgot to add @inheritable in a few, which is necessary for static methods as they aren't inherited by default and thus wouldn't be mixed into jQuery (from jQuery.plugin). Change-Id: I893103e90ac9becca721333a931a0bd53f193f6e --- diff --git a/resources/src/jquery/jquery.byteLength.js b/resources/src/jquery/jquery.byteLength.js index 0b8f9daf1f..7fe25ee30c 100644 --- a/resources/src/jquery/jquery.byteLength.js +++ b/resources/src/jquery/jquery.byteLength.js @@ -9,6 +9,9 @@ * Calculate the byte length of a string (accounting for UTF-8). * * @static + * @inheritable + * @param {string} str + * @return {string} */ jQuery.byteLength = function ( str ) { // This basically figures out how many bytes a UTF-16 string (which is what js sees) diff --git a/resources/src/jquery/jquery.hidpi.js b/resources/src/jquery/jquery.hidpi.js index 99889f1952..71b083b640 100644 --- a/resources/src/jquery/jquery.hidpi.js +++ b/resources/src/jquery/jquery.hidpi.js @@ -21,6 +21,7 @@ * Uses `window.devicePixelRatio` if available, or CSS media queries on IE. * * @static + * @inheritable * @return {number} Device pixel ratio */ $.devicePixelRatio = function () {