You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed incompatibilities with backbone 1.2.x by removing backbone dependency, effective now and forever. Currently, stable backbone 1.1.2 is linked in.
15
9
- npm package name is changed to just 'nestedtypes'. Thus, `npm install nestedtypes`.
16
-
-It export all the stuff which is required to use it as drop-in backbonejs replacement in your project.
10
+
-Can be used as drop-in backbonejs replacement in your project.
17
11
- Models has reference to the parent model through `this._owner`
18
-
- When the same model is shared between two other models, attempt to serialize the model which is not an owner will result in [Serialization Error] warning. In most of the cases, this warning is the sign of weird errors, because after loading data this shared models won't be shared any more.
12
+
- When the same model is shared between tho other models, attempt to serialize the model which is not an owner will result in [Serialization Error] warning. In most of the cases, this warning is the sign of weird errors, because after loading data this shared models won't be shared any more.
19
13
- Collections has new `changes` event, which can be used directly on collection instead of 'add remove change reset'. It's efficient, and fired only once during compound changes.
20
14
- There are Collection.transaction( func ) method which can be used ad-hoc to group sequence of changes coming from inside of func to the single transaction, thus, firing just one 'changes' event. Helpful for reducing an amount of renders.
21
15
- Every method declared on Collection can be turned to be transactional when its definition is wrapped in Nested.transaction.
16
+
- Experimental features:
17
+
- lazily evaluated hard references `Model.take( ref )` and `Collection.take( ref )`. ref is the reference like in
18
+
- attribute proxies for mixing in attributes, `a : MyModel.proxy()`. `a` members will be directly accessible in owner model.
22
19
- There are completely new mechancs of Stores, which will be documented later, and will allow us to refactor collections with mutual references which has to be requested together (such as users-roles-channelSets). It will be documented later.
23
20
24
21
Major change you need to do now:
@@ -36,7 +33,15 @@ Nested.store = new Nested.LazyStore.defaults({
36
33
Why? Because now Stores are first-class objects in the system, they can be created with `new`,
37
34
they supports hierarchical lookups, they may have different transports, and more. The more about it later.
0 commit comments