Merge "Update magic words and special page aliases for Arabic and Egyptian Arabic"
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.storage.js
index 20f8efb..95c77f8 100644 (file)
         *
         * @class mw.SafeStorage
         * @private
-        */
-
-       /**
-        * @ignore
         * @param {Object|undefined} store The Storage instance to wrap around
         */
        function SafeStorage( store ) {
        };
 
        /**
-         * Set a value in device storage.
-         *
-         * @param {string} key Key name to store under
-         * @param {string} value Value to be stored
-         * @return {boolean} Whether the save succeeded or not
-         */
+        * Set a value in device storage.
+        *
+        * @param {string} key Key name to store under
+        * @param {string} value Value to be stored
+        * @return {boolean} Whether the save succeeded or not
+        */
        SafeStorage.prototype.set = function ( key, value ) {
                try {
                        this.store.setItem( key, value );
        };
 
        /**
-         * Remove a value from device storage.
-         *
-         * @param {string} key Key of item to remove
-         * @return {boolean} Whether the save succeeded or not
-         */
+        * Remove a value from device storage.
+        *
+        * @param {string} key Key of item to remove
+        * @return {boolean} Whether the save succeeded or not
+        */
        SafeStorage.prototype.remove = function ( key ) {
                try {
                        this.store.removeItem( key );
@@ -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