From 8ca8a2491383872eed956364bc25d9f8b40ef201 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Wed, 30 Sep 2015 10:51:04 -0700 Subject: [PATCH] ARRAY -> LIST --- examples/ReactExample/index.ios.js | 2 +- src/RJSSchema.mm | 2 +- src/RealmJS.mm | 2 +- tests/TestObjects.js | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/ReactExample/index.ios.js b/examples/ReactExample/index.ios.js index f6f1d2be..4f0de0ca 100644 --- a/examples/ReactExample/index.ios.js +++ b/examples/ReactExample/index.ios.js @@ -28,7 +28,7 @@ var TodoListSchmea = { name: 'TodoList', properties: [ {name: 'name', type: Realm.Types.STRING}, - {name: 'items', type: Realm.Types.ARRAY, objectType: 'Todo'} + {name: 'items', type: Realm.Types.LIST, objectType: 'Todo'} ] }; diff --git a/src/RJSSchema.mm b/src/RJSSchema.mm index f4d42a79..534b44b5 100644 --- a/src/RJSSchema.mm +++ b/src/RJSSchema.mm @@ -90,7 +90,7 @@ static inline Property RJSParseProperty(JSContextRef ctx, JSObjectRef propertyOb prop.object_type = RJSValidatedStringProperty(ctx, propertyObject, objectTypeString); prop.is_nullable = true; } - else if (type == "PropTypesARRAY") { + else if (type == "PropTypesLIST") { prop.type = PropertyTypeArray; prop.object_type = RJSValidatedStringProperty(ctx, propertyObject, objectTypeString); } diff --git a/src/RealmJS.mm b/src/RealmJS.mm index dcbb331f..1e920b07 100644 --- a/src/RealmJS.mm +++ b/src/RealmJS.mm @@ -36,7 +36,7 @@ JSClassRef RJSRealmTypeClass() { { "DATE", RJSTypeGet, NULL, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, { "DATA", RJSTypeGet, NULL, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, { "OBJECT", RJSTypeGet, NULL, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, - { "ARRAY", RJSTypeGet, NULL, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, + { "LIST", RJSTypeGet, NULL, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, { NULL, NULL, NULL, 0 } }; realmTypesDefinition.staticValues = types; diff --git a/tests/TestObjects.js b/tests/TestObjects.js index 830caae8..75535039 100644 --- a/tests/TestObjects.js +++ b/tests/TestObjects.js @@ -55,7 +55,7 @@ var LinkTypesObjectSchema = { properties: [ {name: 'objectCol', type: 'TestObject'}, {name: 'objectCol1', type: Realm.Types.OBJECT, objectType: 'TestObject'}, - {name: 'arrayCol', type: Realm.Types.ARRAY, objectType: 'TestObject'}, + {name: 'arrayCol', type: Realm.Types.LIST, objectType: 'TestObject'}, ] }; @@ -81,7 +81,7 @@ var AllTypesObjectSchema = { {name: 'dateCol', type: Realm.Types.DATE}, {name: 'dataCol', type: Realm.Types.DATA}, {name: 'objectCol', type: 'TestObject'}, - {name: 'arrayCol', type: Realm.Types.ARRAY, objectType: 'TestObject'}, + {name: 'arrayCol', type: Realm.Types.LIST, objectType: 'TestObject'}, ] }; @@ -97,7 +97,7 @@ var DefaultValuesObjectSchema = { {name: 'dataCol', type: Realm.Types.DATA, default: 'defaultData'}, {name: 'objectCol', type: 'TestObject', default: [1]}, {name: 'nullObjectCol', type: 'TestObject', default: null}, - {name: 'arrayCol', type: Realm.Types.ARRAY, objectType: 'TestObject', default: [[2]]}, + {name: 'arrayCol', type: Realm.Types.LIST, objectType: 'TestObject', default: [[2]]}, ] };