Skip to content

Commit

Permalink
Avoid undefined
Browse files Browse the repository at this point in the history
caused by double clicking on close icon

Signed-off-by: Michael M Slusarz <slusarz@horde.org>
  • Loading branch information
joaomachado authored and slusarz committed Apr 30, 2014
1 parent ef9a4cc commit bdd31e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/js/prettyautocomplete.js
Expand Up @@ -305,7 +305,7 @@ var IMP_PrettyAutocompleter = Class.create({
{
var elt = e.findElement('LI');

if (elt.hasClassName(this.p.listClassItem)) {
if (elt && elt.hasClassName(this.p.listClassItem)) {
this.addNewItem($F(this.input));
this.updateInput(elt);
} else {
Expand Down

0 comments on commit bdd31e4

Please sign in to comment.