/**
* Creates an object that encapsulates Closure's Storage and Storage Mechanism classes, basically so that we can call clear.
*
* @param {function(new:goog.storage.Storage, !goog.storage.mechanism.Mechanism)} storageType The type of storage to create.
* @param {function(new:goog.storage.mechanism.Mechanism)} mechanismType The type of storage mechanism to create.
* @constructor
*/
filevision.storage.Storage = function(storageType, mechanismType) {
/**
* The internal storage mechanism
* @private {goog.storage.mechanism.Mechanism}
*/
this.mechanism_ = new mechanismType();
/**
* The internal storage
* @private {goog.storage.Storage}
*/
this.storage_ = new storageType(this.mechanism_);
};
/**
* Global property to provide localStorage
* @const {filevision.storage.Storage}
*/
filevision.storage.Local = new filevision.storage.Storage(goog.storage.CollectableStorage, goog.storage.mechanism.HTML5LocalStorage);
filevision\storage\storage.js:102: WARNING - actual parameter 1 of filevision.storage.Storage does not match formal parameter
found : function (new:goog.storage.CollectableStorage, goog.storage.mechanism.IterableMechanism): undefined
required: function (new:goog.storage.Storage, goog.storage.mechanism.Mechanism): ?
filevision.storage.Local = new filevision.storage.Storage(goog.storage.CollectableStorage, goog.storage.mechanism.HTML5LocalStorage); //new goog.storage.CollectableStorage(new goog.storage.mechanism.HTML5LocalStorage());