mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
BOOOOM part of the tree layout done\!
This commit is contained in:
parent
9378254f0a
commit
d16b8b61d3
3 changed files with 155 additions and 14 deletions
|
@ -798,14 +798,15 @@ var Branch = Ref.extend({
|
|||
var Commit = Backbone.Model.extend({
|
||||
defaults: {
|
||||
type: 'commit',
|
||||
children: [],
|
||||
parents: []
|
||||
children: null,
|
||||
parents: null,
|
||||
},
|
||||
|
||||
validateAtInit: function() {
|
||||
if (!this.get('id')) {
|
||||
this.set('id', uniqueId('C'));
|
||||
}
|
||||
this.set('children', []);
|
||||
|
||||
// root commits have no parents
|
||||
if (!this.get('rootCommit')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue