Avoid JSHint error. re #34

This commit is contained in:
Sébastien Lucas 2013-10-15 21:58:34 +02:00
parent a836be6507
commit 6bff2996ae

10
util.js
View file

@ -224,7 +224,9 @@ function handleFilterEvents () {
************************************************ ************************************************
*/ */
function updatePage (data) { var updatePage, navigateTo;
updatePage = function (data) {
var result; var result;
filterList = {}; filterList = {};
data.c = currentData.c; data.c = currentData.c;
@ -277,9 +279,9 @@ function updatePage (data) {
$('input[name=query]').bind('typeahead:selected', function(obj, datum) { $('input[name=query]').bind('typeahead:selected', function(obj, datum) {
navigateTo (datum.navlink); navigateTo (datum.navlink);
}); });
} };
function navigateTo (url) { navigateTo = function (url) {
$("h1").append (" <i class='icon-spinner icon-spin'></i>"); $("h1").append (" <i class='icon-spinner icon-spin'></i>");
before = new Date (); before = new Date ();
var jsonurl = url.replace ("index", "getJSON"); var jsonurl = url.replace ("index", "getJSON");
@ -294,7 +296,7 @@ function navigateTo (url) {
updatePage (data); updatePage (data);
}); });
} }
} };
function link_Clicked (event) { function link_Clicked (event) {
var currentLink = $(this); var currentLink = $(this);