pvalena / rpms / ruby

Forked from rpms/ruby 2 years ago
Clone
ec97a0
From d05e6269d4a4dfd701f5ddb3ae34306cba891511 Mon Sep 17 00:00:00 2001
ec97a0
From: Jun Aruga <jaruga@redhat.com>
ec97a0
Date: Fri, 3 Aug 2018 11:35:55 +0200
ec97a0
Subject: [PATCH] Fix indent and typo from moveTimout to moveTimeout.
ec97a0
ec97a0
---
ec97a0
 lib/rdoc/generator/template/json_index/js/navigation.js | 7 +++----
ec97a0
 1 file changed, 3 insertions(+), 4 deletions(-)
ec97a0
ec97a0
diff --git a/lib/rdoc/generator/template/json_index/js/navigation.js b/lib/rdoc/generator/template/json_index/js/navigation.js
ec97a0
index e4126812..43c5118a 100644
ec97a0
--- a/lib/rdoc/generator/template/json_index/js/navigation.js
ec97a0
+++ b/lib/rdoc/generator/template/json_index/js/navigation.js
ec97a0
@@ -59,9 +59,8 @@ Navigation = new function() {
ec97a0
         }
ec97a0
         break;
ec97a0
       case 13: //Event.KEY_RETURN:
ec97a0
-        if (this.$current)
ec97a0
-          e.preventDefault();
ec97a0
-          this.select(this.$current);
ec97a0
+        if (this.$current) e.preventDefault();
ec97a0
+        this.select(this.$current);
ec97a0
         break;
ec97a0
     }
ec97a0
     if (e.ctrlKey && e.shiftKey) this.select(this.$current);
ec97a0
@@ -80,7 +79,7 @@ Navigation = new function() {
ec97a0
     var go = function() {
ec97a0
       if (!_this.moveTimeout) return;
ec97a0
       _this[isDown ? 'moveDown' : 'moveUp']();
ec97a0
-      _this.moveTimout = setTimeout(go, 100);
ec97a0
+      _this.moveTimeout = setTimeout(go, 100);
ec97a0
     }
ec97a0
     this.moveTimeout = setTimeout(go, 200);
ec97a0
   }