Fix Problem with DataType Text, closes #278
This commit is contained in:
parent
4e70b5c003
commit
0f040f7814
|
@ -248,7 +248,12 @@ Schema.prototype.define = function defineClass(className, properties, settings)
|
|||
DataType = function JSON(s) {
|
||||
return s;
|
||||
};
|
||||
} else if (DataType.name === 'Text' || DataType === Schema.Text) {
|
||||
DataType = function Text(s) {
|
||||
return s;
|
||||
};
|
||||
}
|
||||
|
||||
Object.defineProperty(NewClass.prototype, attr, {
|
||||
get: function () {
|
||||
if (NewClass.getter[attr]) {
|
||||
|
|
Loading…
Reference in New Issue