From 90491fd582c4ca11ecae0fed2eefcd4067f0ccd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 18 Oct 2015 16:24:25 +0200 Subject: [PATCH] Fix function names in switch_view introduced in changeset 42fa179663f5 --- src/screen.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/screen.js b/src/screen.js index 192523b448..89dec16fd5 100644 --- a/src/screen.js +++ b/src/screen.js @@ -683,14 +683,15 @@ (this.current_view.view_type != view_type)) { var switch_current_view = (function() { this.current_view = this.views[this.views.length - 1]; - return _switch_view(); + return _switch(); }.bind(this)); for (var i = 0; i < this.number_of_views(); i++) { if (this.view_to_load.length) { if (!view_type) { view_type = this.view_to_load[0]; } - return this.load_next_view().then(_switch); + return this.load_next_view().then( + switch_current_view); } this.current_view = this.views[ (this.views.indexOf(this.current_view) + 1) %