Add path and schemaVersion getters to realm object

This commit is contained in:
Scott Kyle 2015-10-19 15:46:28 -07:00
parent 1b7653206a
commit d172b43535
1 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,13 @@ class Realm {
this[keys.realm] = realmId;
this[keys.type] = internal.REALM;
this[notificationsKey] = [];
[
'path',
'schemaVersion',
].forEach((name) => {
Object.defineProperty(this, name, {get: util.getterForProperty(name)});
});
}
addNotification(callback) {