From 8d9d73efff12fdce8f039990c8a19cb61dd2743b Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 20 Nov 2013 10:56:48 -0800 Subject: [PATCH] Add properties/methods to DataSource from ModelBuilder --- lib/datasource.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); +}; +