diff --git a/js/bigwig.js b/js/bigwig.js
index <HASH>..<HASH> 100644
--- a/js/bigwig.js
+++ b/js/bigwig.js
@@ -734,8 +734,6 @@ BigWigView.prototype.getFirstAdjacentById = function(chr, pos, dir, callback) {
             var bestPos = -1;
 	    var createFeature = function(chrx, fmin, fmax, opts) {
 //                dlog('createFeature(' + fmin +', ' + fmax + ')');
-	    var createFeature = function(fmin, fmax, opts) {
-                // dlog('createFeature(' + fmin +', ' + fmax + ')');
 
                 if (!opts) {
                     opts = {};
More-or-less got skip-across-chromosomes working.