Fix Problem with DataType Text, closes #278

This commit is contained in:
Anatoliy Chakkaev 2013-05-08 11:31:12 +04:00 committed by Raymond Feng
parent 4e70b5c003
commit 0f040f7814
1 changed files with 5 additions and 0 deletions

View File

@ -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]) {