Move check to this.
parent
48c06cced3
commit
01cad41a87
|
@ -47,8 +47,6 @@ var SimpleAutocomplete = function(input, dataLoader, params)
|
||||||
{
|
{
|
||||||
if (typeof(input) == 'string')
|
if (typeof(input) == 'string')
|
||||||
input = document.getElementById(input);
|
input = document.getElementById(input);
|
||||||
if (emptyText === undefined)
|
|
||||||
emptyText = 'No items found';
|
|
||||||
if (!params)
|
if (!params)
|
||||||
params = {};
|
params = {};
|
||||||
|
|
||||||
|
@ -63,6 +61,8 @@ var SimpleAutocomplete = function(input, dataLoader, params)
|
||||||
this.delay = params.delay;
|
this.delay = params.delay;
|
||||||
if (this.delay === undefined)
|
if (this.delay === undefined)
|
||||||
this.delay = 300;
|
this.delay = 300;
|
||||||
|
if (this.emptyText === undefined)
|
||||||
|
this.emptyText = 'No items found';
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
this.timer = null;
|
this.timer = null;
|
||||||
|
|
Loading…
Reference in New Issue