Fix comment

This commit is contained in:
Drew Gross
2016-02-10 16:31:07 -08:00
parent 747f278f2a
commit 92e9db9064

View File

@@ -561,7 +561,7 @@ Schema.prototype.getExpectedType = function(className, key) {
// Checks if a given class is in the schema. Needs to load the
// schema first, which is kinda janky. Hopefully we can refactor
// and make this be a regular value. Parse would probably
// and make this be a regular value.
Schema.prototype.hasClass = function(className) {
return this.reload().then(newSchema => !!newSchema.data[className]);
}