mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 08:58:02 +02:00
see comment.
This commit is contained in:
parent
1e3b20b66d
commit
6f671b7cde
1 changed files with 5 additions and 3 deletions
|
@ -363,15 +363,17 @@ function MyController(hand) {
|
|||
|
||||
var suppressedIn2D = [STATE_OFF, STATE_SEARCHING, STATE_HOLD_SEARCHING];
|
||||
this.ignoreInput = function () {
|
||||
return (-1 !== suppressedIn2D.indexOf(_this.state)) && isIn2DMode();
|
||||
// We've made the decision to use 'this' for new code, even though it is fragile,
|
||||
// in order to keep/ the code uniform without making any no-op line changes.
|
||||
return (-1 !== suppressedIn2D.indexOf(this.state)) && isIn2DMode();
|
||||
};
|
||||
|
||||
this.update = function() {
|
||||
|
||||
this.updateSmoothedTrigger();
|
||||
|
||||
if (_this.ignoreInput()) {
|
||||
_this.turnOffVisualizations();
|
||||
if (this.ignoreInput()) {
|
||||
this.turnOffVisualizations();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue