From c6a3d159774a8f2aa0cb02596eb46de3c349e9fb Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Thu, 1 May 2014 00:32:57 +0200 Subject: [PATCH] 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 --- resources/src/jquery/jquery.byteLength.js | 3 +++ resources/src/jquery/jquery.hidpi.js | 1 + 2 files changed, 4 insertions(+) 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 () { -- 2.20.1