mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
origin graphics should i do branch stack?
This commit is contained in:
parent
50a9eec959
commit
0d865178b0
6 changed files with 99 additions and 49 deletions
|
@ -1633,6 +1633,14 @@ var Ref = Backbone.Model.extend({
|
|||
}
|
||||
},
|
||||
|
||||
getIsRemote: function() {
|
||||
return false;
|
||||
},
|
||||
|
||||
getName: function() {
|
||||
return this.get('id');
|
||||
},
|
||||
|
||||
targetChanged: function(model, targetValue, ev) {
|
||||
// push our little 3 stack back. we need to do this because
|
||||
// backbone doesn't give you what the value WAS, only what it was changed
|
||||
|
@ -1649,10 +1657,13 @@ var Ref = Backbone.Model.extend({
|
|||
var Branch = Ref.extend({
|
||||
defaults: {
|
||||
visBranch: null,
|
||||
isOrigin: false,
|
||||
origin: null
|
||||
},
|
||||
|
||||
getIsRemote: function() {
|
||||
return this.get('origin') !== null;
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
Ref.prototype.initialize.call(this);
|
||||
this.set('type', 'branch');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue