Roan Kattouw
|
eff198ff1d
|
Move .indexOf() from es.DocumentModelBranchNode to es.DocumentBranchNode and use it in .traverseLeafNodes()
|
2011-11-15 16:24:33 +00:00 |
|
Roan Kattouw
|
c484afe87a
|
Fix IE-specific test breakages. Two tests were broken because Array.prototype.indexOf() was used, another one because Array.prototype.splice() is broken in IE:
>>[1,2,3].slice(0).length
3
>>[1,2,3].slice(0, undefined).length
0
|
2011-11-15 16:21:45 +00:00 |
|
Trevor Parscal
|
fabaff5fc1
|
Fixed order of operations and added missing attach operation to splicing nodes in a model branch
|
2011-11-14 19:47:44 +00:00 |
|
Trevor Parscal
|
713a80596d
|
Added es.DocumentLeafNode, which like es.DocumentBranchNode is a mixin-like class (we may want to switch to using a more natural composition mechanism than es.extendClass in the future) - now es.DocumentNode also has an abstract method called hasChildren which returns a boolean and can indicate if a node is a leaf or a branch.
|
2011-11-10 19:26:02 +00:00 |
|
Trevor Parscal
|
fcb3644f35
|
Reorganized a few methods to reduce duplication, improved documentation
|
2011-11-04 17:07:44 +00:00 |
|
Trevor Parscal
|
b636d9a52b
|
Refactored some of the tree sync code to be reusable
|
2011-11-03 23:19:36 +00:00 |
|
Trevor Parscal
|
764f2b0e65
|
Reorganized model nodes into branches and leafs
|
2011-11-03 21:48:40 +00:00 |
|