DeuxHuitHuit / quicksearch

A jQuery plugin for searching through DOM Elements quickly
https://www.npmjs.org/package/jquery.quicksearch
Other
135 stars 35 forks source link

TypeError: inputSearch.quicksearch is not a function error #8

Closed patrioticcow closed 10 years ago

patrioticcow commented 10 years ago

hello,

in mozilla firefox (29.0.1) i get this message TypeError: inputSearch.quicksearch is not a function

any ideas?

thanks

nitriques commented 10 years ago

No ideas why. Have you resolve the bug (since you closed the issue) ?

nitriques commented 10 years ago

Looks like the js file is not loaded... of inputSearch is not a jQuery object.

patrioticcow commented 10 years ago

i had the javascript include use async .. so the js files loaded kind of backwards

nitriques commented 10 years ago

You can make it work with async by delaying the call.

$(window).load(function () {
    inputSearch.quicksearch();
});