Functiondojox.storage.manager.register

dojo.require("dojox.storage.manager");
defined in dojox/storage/manager.js

Registers the existence of a new storage provider; used by subclasses to inform the manager of their existence. The storage manager will select storage providers based on their ordering, so the order in which you call this method matters.

Usage

function (/*String*/ name, /*Object*/ instance) (view source)
parametertypedescription
nameStringThe full class name of this provider, such as "dojox.storage.FlashStorageProvider".
instanceObjectAn instance of this provider, which we will use to call isAvailable() on. keep list of providers as a list so that we can know what order storage providers are preferred; also, store the providers hashed by name in case someone wants to get a provider that uses a particular storage backend