yay ok views feelnice just need 3d

This commit is contained in:
Peter Cottle 2012-12-24 13:47:39 -08:00
parent 3664ad8b65
commit ad764c62eb
3 changed files with 18 additions and 24 deletions

View file

@ -14,8 +14,8 @@ var KeyboardListener = require('../util/keyboard').KeyboardListener;
var MultiView = Backbone.View.extend({
tagName: 'div',
className: 'multiView',
// ms to throttle the nav functions
navEventThrottle: 150,
// ms to debounce the nav functions
navEventDebounce: 750,
deathTime: 700,
// a simple mapping of what childViews we support
@ -59,15 +59,15 @@ var MultiView = Backbone.View.extend({
},
getPosFunc: function() {
return _.throttle(_.bind(function() {
return _.debounce(_.bind(function() {
this.navForward();
}, this), this.navEventThrottle);
}, this), this.navEventDebounce, true);
},
getNegFunc: function() {
return _.throttle(_.bind(function() {
return _.debounce(_.bind(function() {
this.navBackward();
}, this), this.navEventThrottle);
}, this), this.navEventDebounce, true);
},
navForward: function() {