origin graphics should i do branch stack?

This commit is contained in:
Peter Cottle 2013-05-14 10:23:32 -07:00
parent 50a9eec959
commit 0d865178b0
6 changed files with 99 additions and 49 deletions

View file

@ -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');