mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08:34 +02:00
debounce ownage
This commit is contained in:
parent
d2f3c05794
commit
834d410d30
2 changed files with 686 additions and 686 deletions
1368
build/bundle.js
1368
build/bundle.js
File diff suppressed because it is too large
Load diff
|
@ -531,14 +531,14 @@ GitVisuals.prototype.calcDepthRecursive = function(commit, depth) {
|
||||||
return maxDepth;
|
return maxDepth;
|
||||||
};
|
};
|
||||||
|
|
||||||
GitVisuals.prototype.canvasResize = function(width, height) {
|
GitVisuals.prototype.canvasResize = _.debounce(function(width, height) {
|
||||||
// refresh when we are ready
|
// refresh when we are ready
|
||||||
if (GLOBAL.isAnimating) {
|
if (GLOBAL.isAnimating) {
|
||||||
Main.getEvents().trigger('processCommandFromEvent', 'refresh');
|
Main.getEvents().trigger('processCommandFromEvent', 'refresh');
|
||||||
} else {
|
} else {
|
||||||
this.refreshTree();
|
this.refreshTree();
|
||||||
}
|
}
|
||||||
};
|
}, 200);
|
||||||
|
|
||||||
GitVisuals.prototype.addCommit = function(commit) {
|
GitVisuals.prototype.addCommit = function(commit) {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue