mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-08 12:04:36 +02:00
temporary UNSTABLE since codemod went nuts
This commit is contained in:
parent
2257668f9d
commit
f048f99e7f
14 changed files with 32 additions and 39 deletions
|
@ -1,4 +1,3 @@
|
|||
var _ = require('underscore');
|
||||
var Backbone = require('backbone');
|
||||
var Q = require('q');
|
||||
|
||||
|
@ -76,14 +75,14 @@ AnimationFactory.highlightEachWithPromise = function(
|
|||
toHighlight,
|
||||
destObj
|
||||
) {
|
||||
_.each(toHighlight, function(commit) {
|
||||
toHighlight.forEach(function(commit) {
|
||||
chain = chain.then(function() {
|
||||
return this.playHighlightPromiseAnimation(
|
||||
commit,
|
||||
destObj
|
||||
);
|
||||
}.bind(this));
|
||||
}, this);
|
||||
}.bind(this));
|
||||
return chain;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
var _ = require('underscore');
|
||||
var Q = require('q');
|
||||
var Backbone = require('backbone');
|
||||
var GlobalStateActions = require('../../actions/GlobalStateActions');
|
||||
|
|
|
@ -91,7 +91,7 @@ var Visualization = Backbone.View.extend({
|
|||
this.shown = false;
|
||||
this.setTreeOpacity(0);
|
||||
// reflow needed
|
||||
process.nextTick(this.fadeTreeIn, this));
|
||||
process.nextTick(this.fadeTreeIn.bind(this));
|
||||
|
||||
this.customEvents.trigger('gitEngineReady');
|
||||
this.customEvents.trigger('paperReady');
|
||||
|
@ -99,7 +99,7 @@ var Visualization = Backbone.View.extend({
|
|||
|
||||
clearOrigin: function() {
|
||||
delete this.originVis;
|
||||
}.bind(this)
|
||||
}.bind(this),
|
||||
|
||||
makeOrigin: function(options) {
|
||||
// oh god, here we go. We basically do a bizarre form of composition here,
|
||||
|
@ -186,7 +186,7 @@ var Visualization = Backbone.View.extend({
|
|||
|
||||
show: function() {
|
||||
$(this.paper.canvas).css('visibility', 'visible');
|
||||
setTimeout(this.fadeTreeIn, this), 10);
|
||||
setTimeout(this.fadeTreeIn.bind(this), 10);
|
||||
this.originToo('show', arguments);
|
||||
this.myResize();
|
||||
},
|
||||
|
@ -196,7 +196,7 @@ var Visualization = Backbone.View.extend({
|
|||
this.setTreeOpacity(1);
|
||||
this.originToo('showHarsh', arguments);
|
||||
this.myResize();
|
||||
}.bind(this)
|
||||
}.bind(this),
|
||||
|
||||
resetFromThisTreeNow: function(treeString) {
|
||||
this.treeString = treeString;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue