mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 17:27:22 +02:00
yay ok views feelnice just need 3d
This commit is contained in:
parent
3664ad8b65
commit
ad764c62eb
3 changed files with 18 additions and 24 deletions
|
@ -11509,12 +11509,10 @@ var CommandPromptView = Backbone.View.extend({
|
||||||
|
|
||||||
blur: function() {
|
blur: function() {
|
||||||
this.listening = false;
|
this.listening = false;
|
||||||
console.log('blurrring');
|
|
||||||
this.hideCursor();
|
this.hideCursor();
|
||||||
},
|
},
|
||||||
|
|
||||||
focus: function() {
|
focus: function() {
|
||||||
console.log('focusing');
|
|
||||||
this.listening = true;
|
this.listening = true;
|
||||||
this.$('#commandTextField').focus();
|
this.$('#commandTextField').focus();
|
||||||
this.showCursor();
|
this.showCursor();
|
||||||
|
@ -13756,8 +13754,8 @@ var KeyboardListener = require('../util/keyboard').KeyboardListener;
|
||||||
var MultiView = Backbone.View.extend({
|
var MultiView = Backbone.View.extend({
|
||||||
tagName: 'div',
|
tagName: 'div',
|
||||||
className: 'multiView',
|
className: 'multiView',
|
||||||
// ms to throttle the nav functions
|
// ms to debounce the nav functions
|
||||||
navEventThrottle: 150,
|
navEventDebounce: 750,
|
||||||
deathTime: 700,
|
deathTime: 700,
|
||||||
|
|
||||||
// a simple mapping of what childViews we support
|
// a simple mapping of what childViews we support
|
||||||
|
@ -13801,15 +13799,15 @@ var MultiView = Backbone.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
getPosFunc: function() {
|
getPosFunc: function() {
|
||||||
return _.throttle(_.bind(function() {
|
return _.debounce(_.bind(function() {
|
||||||
this.navForward();
|
this.navForward();
|
||||||
}, this), this.navEventThrottle);
|
}, this), this.navEventDebounce, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
getNegFunc: function() {
|
getNegFunc: function() {
|
||||||
return _.throttle(_.bind(function() {
|
return _.debounce(_.bind(function() {
|
||||||
this.navBackward();
|
this.navBackward();
|
||||||
}, this), this.navEventThrottle);
|
}, this), this.navEventDebounce, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
navForward: function() {
|
navForward: function() {
|
||||||
|
@ -16685,12 +16683,10 @@ var CommandPromptView = Backbone.View.extend({
|
||||||
|
|
||||||
blur: function() {
|
blur: function() {
|
||||||
this.listening = false;
|
this.listening = false;
|
||||||
console.log('blurrring');
|
|
||||||
this.hideCursor();
|
this.hideCursor();
|
||||||
},
|
},
|
||||||
|
|
||||||
focus: function() {
|
focus: function() {
|
||||||
console.log('focusing');
|
|
||||||
this.listening = true;
|
this.listening = true;
|
||||||
this.$('#commandTextField').focus();
|
this.$('#commandTextField').focus();
|
||||||
this.showCursor();
|
this.showCursor();
|
||||||
|
@ -17246,8 +17242,8 @@ var KeyboardListener = require('../util/keyboard').KeyboardListener;
|
||||||
var MultiView = Backbone.View.extend({
|
var MultiView = Backbone.View.extend({
|
||||||
tagName: 'div',
|
tagName: 'div',
|
||||||
className: 'multiView',
|
className: 'multiView',
|
||||||
// ms to throttle the nav functions
|
// ms to debounce the nav functions
|
||||||
navEventThrottle: 150,
|
navEventDebounce: 750,
|
||||||
deathTime: 700,
|
deathTime: 700,
|
||||||
|
|
||||||
// a simple mapping of what childViews we support
|
// a simple mapping of what childViews we support
|
||||||
|
@ -17291,15 +17287,15 @@ var MultiView = Backbone.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
getPosFunc: function() {
|
getPosFunc: function() {
|
||||||
return _.throttle(_.bind(function() {
|
return _.debounce(_.bind(function() {
|
||||||
this.navForward();
|
this.navForward();
|
||||||
}, this), this.navEventThrottle);
|
}, this), this.navEventDebounce, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
getNegFunc: function() {
|
getNegFunc: function() {
|
||||||
return _.throttle(_.bind(function() {
|
return _.debounce(_.bind(function() {
|
||||||
this.navBackward();
|
this.navBackward();
|
||||||
}, this), this.navEventThrottle);
|
}, this), this.navEventDebounce, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
navForward: function() {
|
navForward: function() {
|
||||||
|
|
|
@ -71,12 +71,10 @@ var CommandPromptView = Backbone.View.extend({
|
||||||
|
|
||||||
blur: function() {
|
blur: function() {
|
||||||
this.listening = false;
|
this.listening = false;
|
||||||
console.log('blurrring');
|
|
||||||
this.hideCursor();
|
this.hideCursor();
|
||||||
},
|
},
|
||||||
|
|
||||||
focus: function() {
|
focus: function() {
|
||||||
console.log('focusing');
|
|
||||||
this.listening = true;
|
this.listening = true;
|
||||||
this.$('#commandTextField').focus();
|
this.$('#commandTextField').focus();
|
||||||
this.showCursor();
|
this.showCursor();
|
||||||
|
|
|
@ -14,8 +14,8 @@ var KeyboardListener = require('../util/keyboard').KeyboardListener;
|
||||||
var MultiView = Backbone.View.extend({
|
var MultiView = Backbone.View.extend({
|
||||||
tagName: 'div',
|
tagName: 'div',
|
||||||
className: 'multiView',
|
className: 'multiView',
|
||||||
// ms to throttle the nav functions
|
// ms to debounce the nav functions
|
||||||
navEventThrottle: 150,
|
navEventDebounce: 750,
|
||||||
deathTime: 700,
|
deathTime: 700,
|
||||||
|
|
||||||
// a simple mapping of what childViews we support
|
// a simple mapping of what childViews we support
|
||||||
|
@ -59,15 +59,15 @@ var MultiView = Backbone.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
getPosFunc: function() {
|
getPosFunc: function() {
|
||||||
return _.throttle(_.bind(function() {
|
return _.debounce(_.bind(function() {
|
||||||
this.navForward();
|
this.navForward();
|
||||||
}, this), this.navEventThrottle);
|
}, this), this.navEventDebounce, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
getNegFunc: function() {
|
getNegFunc: function() {
|
||||||
return _.throttle(_.bind(function() {
|
return _.debounce(_.bind(function() {
|
||||||
this.navBackward();
|
this.navBackward();
|
||||||
}, this), this.navEventThrottle);
|
}, this), this.navEventDebounce, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
navForward: function() {
|
navForward: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue