From 01cad41a8766110f87110916438c42a94cb8e378 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 9 Jan 2013 15:32:58 +0000 Subject: [PATCH] Move check to this. --- hinter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hinter.js b/hinter.js index a712df6..99d56cb 100644 --- a/hinter.js +++ b/hinter.js @@ -47,8 +47,6 @@ var SimpleAutocomplete = function(input, dataLoader, params) { if (typeof(input) == 'string') input = document.getElementById(input); - if (emptyText === undefined) - emptyText = 'No items found'; if (!params) params = {}; @@ -63,6 +61,8 @@ var SimpleAutocomplete = function(input, dataLoader, params) this.delay = params.delay; if (this.delay === undefined) this.delay = 300; + if (this.emptyText === undefined) + this.emptyText = 'No items found'; // Variables this.timer = null;