diff --git a/lib/datasource.js b/lib/datasource.js index 5ff6711b..dda360e9 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -1657,3 +1657,17 @@ function defineReadonlyProp(obj, key, value) { }); } + +// Carry over a few properties/methods from the ModelBuilder as some tests use them +DataSource.Text = ModelBuilder.Text; +DataSource.JSON = ModelBuilder.JSON; +DataSource.Any = ModelBuilder.Any; + +/*! + * @deprecated Use ModelBuilder.registerType instead + * @param type + */ +DataSource.registerType = function(type) { + ModelBuilder.registerType(type); +}; +