function Storage(container, type) {
        var _this = _super.call(this) || this;
        _this.container = container;
        _this._storage = null;
        _this._notifyObservers = function (event) { return Storage._observers.forEach(function (observer) { return observer(event); }); };
        type = type || StorageType.LocalStorage;
        _this.switchStorage(type);
        _this._registerStorageEvent();
        return _this;
    }
/**
     * @constructor
     * @param {string} container Container name to be created in the LocalStorage.
     * @param {StorageType} type[optional] Storage Type to be used, defaults to Local Storage.
    */
@constructor
@param {string} container Container name to be created in the LocalStorage.
@param {StorageType} type[optional] Storage Type to be used, defaults to Local Storage.
@constructor @param { string } container Container name to be created in the LocalStorage . @param { StorageType } type [ optional ] Storage Type to be used defaults to Local Storage .
function Storage(container, type) {
        var _this = _super.call(this) || this;
        _this.container = container;
        _this._storage = null;
        _this._notifyObservers = function (event) { return Storage._observers.forEach(function (observer) { return observer(event); }); };
        type = type || StorageType.LocalStorage;
        _this.switchStorage(type);
        _this._registerStorageEvent();
        return _this;
    }
function Storage ( container , type ) { var _this = _super . call ( this ) || this ; _this . container = container ; _this . _storage = null ; _this . _notifyObservers = function ( event ) { return Storage . _observers . forEach ( function ( observer ) { return observer ( event ) ; } ) ; } ; type = type || StorageType . LocalStorage ; _this . switchStorage ( type ) ; _this . _registerStorageEvent ( ) ; return _this ; }
@constructor
 @param {string} container Container name to be created in the LocalStorage.
@constructor @param { string } container Container name to be created in the LocalStorage .