From: Prateek Saxena Date: Mon, 13 Feb 2017 16:02:41 +0000 (+0530) Subject: docs: Unhide the mw.storage and mw.storage.session documentation X-Git-Tag: 1.31.0-rc.0~4092^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=ef53dcaf00dd17208fa2fb854133b83cbb42bd45;p=lhc%2Fweb%2Fwiklou.git docs: Unhide the mw.storage and mw.storage.session documentation Currently the documentation for both these classes shows an empty page, and the documentation for SafeStorage doesn't show any methods. Change-Id: I74a431cd064323c7eb1a65d60db7d3d44f5b2943 --- diff --git a/resources/src/mediawiki/mediawiki.storage.js b/resources/src/mediawiki/mediawiki.storage.js index 20f8efb659..2e09392436 100644 --- a/resources/src/mediawiki/mediawiki.storage.js +++ b/resources/src/mediawiki/mediawiki.storage.js @@ -22,10 +22,6 @@ * * @class mw.SafeStorage * @private - */ - - /** - * @ignore * @param {Object|undefined} store The Storage instance to wrap around */ function SafeStorage( store ) { @@ -75,6 +71,9 @@ }; /** + * A wrapper for the HTML5 `localStorage` interface + * that is safe to call on all browsers. + * * @class * @singleton * @extends mw.SafeStorage @@ -82,6 +81,9 @@ mw.storage = new SafeStorage( localStorage ); /** + * A wrapper for the HTML5 `sessionStorage` interface + * that is safe to call on all browsers. + * * @class * @singleton * @extends mw.SafeStorage