- * All registered data handlers are stored here.
- *
- * @private
- */
-Dygraph.DataHandlers.handlers_ = {};
-
-/**
- * @param name {!string} The name the data handler should be registered to.
- * Registers a data handler by the given name and makes it publicly
- * accessible.
- * @param handler {!Dygraph.DataHandler} DataHandler implementation which must be an
- * instance of Dygraph.DataHandler.
- * @public
- */
-Dygraph.DataHandlers.registerHandler = function(name, handler) {
- if (!handler instanceof Dygraph.DataHandler) {
- throw ("the handler must be a prototype of Dygraph.DataHandler");
- }
- Dygraph.DataHandlers.handlers_[name] = handler;
-};
-
-/**
- * Returns the data handler registered to the given name.
- * Note this is the data handler constructor method.
- *
- * @param name {!string} The name, the handler was registered to.
- * @returns {Dygraph.DataHandler} The data handler constructor.
- * @public
- */
-Dygraph.DataHandlers.getHandler = function(name) {
- return Dygraph.DataHandlers.handlers_[name];
-};
-
-/**
- * Returns the cunstructed data handler registered to the given name.
- *
- * @param name {!string} The name, the handler was registered to.
- * @returns {Dygraph.DataHandler} A constructed instance of the data handler.
- * @public
- */
-Dygraph.DataHandlers.createHandler = function(name) {
- return new Dygraph.DataHandlers.handlers_[name]();
-};
-
-/**