Merge pull request #43 from strongloop/feature/fix-regression
Add properties/methods to DataSource from ModelBuilder
This commit is contained in:
commit
88b2d9945c
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue