Add properties/methods to DataSource from ModelBuilder

This commit is contained in:
Raymond Feng 2013-11-20 10:56:48 -08:00
parent ec93fed2ed
commit 8d9d73efff
1 changed files with 14 additions and 0 deletions

View File

@ -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);
};