Merge pull request #43 from strongloop/feature/fix-regression

Add properties/methods to DataSource from ModelBuilder
This commit is contained in:
Raymond Feng 2013-11-20 11:09:29 -08:00
commit 88b2d9945c
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);
};