pvalena / rpms / ruby

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