src/aria/storage/HTML5Storage.js
function (options, storage, throwIfMissing) {
        this.$AbstractStorage.constructor.call(this, options);

        /**
         * Type of html5 storage. E.g. localStorage, sessionStorage
         * @type String
         */
        this.type = storage;

        /**
         * Keep a reference to the global storage object
         * @type Object
         */
        this.storage = Aria.$window[storage];

        /**
         * Event Callback for storage event happening on different windows
         * @type aria.core.CfgBeans:Callback
         */
        this._browserEventCb = null;

        if (!this.storage && throwIfMissing !== false) {
            // This might have been created by AbstractStorage
            if (this._disposeSerializer && this.serializer) {
                this.serializer.$dispose();
            }

            this.$logError(this.UNAVAILABLE, [this.type]);
            throw new Error(this.type);
        }
    }
function (options, storage, throwIfMissing) {
        this.$AbstractStorage.constructor.call(this, options);

        /**
         * Type of html5 storage. E.g. localStorage, sessionStorage
         * @type String
         */
        this.type = storage;

        /**
         * Keep a reference to the global storage object
         * @type Object
         */
        this.storage = Aria.$window[storage];

        /**
         * Event Callback for storage event happening on different windows
         * @type aria.core.CfgBeans:Callback
         */
        this._browserEventCb = null;

        if (!this.storage && throwIfMissing !== false) {
            // This might have been created by AbstractStorage
            if (this._disposeSerializer && this.serializer) {
                this.serializer.$dispose();
            }

            this.$logError(this.UNAVAILABLE, [this.type]);
            throw new Error(this.type);
        }
    }
function ( options , storage , throwIfMissing ) { this . $AbstractStorage . constructor . call ( this , options ) ; /**
         * Type of html5 storage. E.g. localStorage, sessionStorage
         * @type String
         */ this . type = storage ; /**
         * Keep a reference to the global storage object
         * @type Object
         */ this . storage = Aria . $window [ storage ] ; /**
         * Event Callback for storage event happening on different windows
         * @type aria.core.CfgBeans:Callback
         */ this . _browserEventCb = null ; if ( ! this . storage && throwIfMissing !== false ) { // This might have been created by AbstractStorage if ( this . _disposeSerializer && this . serializer ) { this . serializer . $dispose ( ) ; } this . $logError ( this . UNAVAILABLE , [ this . type ] ) ; throw new Error ( this . type ) ; } }
Create a generic instance of HTML5Storage
@param {aria.storage.Beans:ConstructorArgs} options Constructor options
@param {String} storage Type of storage: either localStorage or sessionStorage
Create a generic instance of HTML5Storage