From 6456789b71aabc891a1da1c6bd86130f5978ae3a Mon Sep 17 00:00:00 2001 From: pollirrata Date: Thu, 21 Nov 2013 00:13:12 -0600 Subject: [PATCH 1/3] Use jquery native methods to set the letter count top --- jquery.listnav-2.1.js | 416 +++++++++++++++++++++--------------------- 1 file changed, 208 insertions(+), 208 deletions(-) diff --git a/jquery.listnav-2.1.js b/jquery.listnav-2.1.js index 247cc44..aa28767 100644 --- a/jquery.listnav-2.1.js +++ b/jquery.listnav-2.1.js @@ -15,211 +15,211 @@ * */ -(function($) { - $.fn.listnav = function(options) { - var opts = $.extend({}, $.fn.listnav.defaults, options); - var letters = ['_', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '-']; - var firstClick = false; - opts.prefixes = $.map(opts.prefixes, function(n) { return n.toLowerCase(); }); - - return this.each(function() { - var $wrapper, list, $list, $letters, $letterCount, id; - id = this.id; - $wrapper = $('#' + id + '-nav'); // user must abide by the convention: