docs: Unhide the mw.storage and mw.storage.session documentation
authorPrateek Saxena <prtksxna@gmail.com>
Mon, 13 Feb 2017 16:02:41 +0000 (21:32 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Mon, 13 Feb 2017 16:02:41 +0000 (21:32 +0530)
Currently the documentation for both these classes shows an empty page,
and the documentation for SafeStorage doesn't show any methods.

Change-Id: I74a431cd064323c7eb1a65d60db7d3d44f5b2943

resources/src/mediawiki/mediawiki.storage.js

index 20f8efb..2e09392 100644 (file)
         *
         * @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