aboutsummaryrefslogtreecommitdiffstats
path: root/_smooziee.js
diff options
context:
space:
mode:
authoranekos2010-12-19 09:55:47 +0900
committeranekos2010-12-19 09:55:47 +0900
commit6cc112dde4961f813fd8aa967d6a9d8d8224586e (patch)
tree64e4a387bda643122a24932cee8e4bd9eef8c122 /_smooziee.js
parent588140d0bc9d771ba6efea0c7f689bb717338daf (diff)
downloadvimperator-plugins-6cc112dde4961f813fd8aa967d6a9d8d8224586e.tar.bz2
Remove annoyng warnings
Diffstat (limited to '_smooziee.js')
-rw-r--r--_smooziee.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/_smooziee.js b/_smooziee.js
index e89cd74..36df3f5 100644
--- a/_smooziee.js
+++ b/_smooziee.js
@@ -19,7 +19,7 @@ var PLUGIN_INFO =
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/_smooziee.js</updateURL>
<author mail="snaka.gml@gmail.com" homepage="http://vimperator.g.hatena.ne.jp/snaka72/">snaka</author>
<license>MIT style license</license>
- <version>0.10.1</version>
+ <version>0.10.2</version>
<detail><![CDATA[
== Subject ==
j,k key scrolling to be smoothly.
@@ -118,7 +118,7 @@ let self = liberator.plugins.smooziee = (function(){
var PUBLICS = {
smoothScrollBy: function(moment) {
win = Buffer.findScrollableWindow();
- interval = window.eval(liberator.globalVariables.smooziee_scroll_interval) || 20;
+ interval = window.eval(liberator.globalVariables.smooziee_scroll_interval || '20');
destY = win.scrollY + moment;
clearTimeout(next);
smoothScroll(moment);
@@ -132,7 +132,7 @@ let self = liberator.plugins.smooziee = (function(){
var win;
var interval;
- function getScrollAmount() window.eval(liberator.globalVariables.smooziee_scroll_amount) || 400;
+ function getScrollAmount() window.eval(liberator.globalVariables.smooziee_scroll_amount || '400');
function smoothScroll(moment) {
if (moment > 0)