Fixed issue with this not being defined

This commit is contained in:
Phil Hughes 2016-08-03 09:31:36 +01:00
parent a45071d0ea
commit b1b32bfcf8

View file

@ -60,8 +60,8 @@
}
return this.options.query(this.input.val(), function(data) {
return this.options.callback(data);
});
}, 250);
}.bind(this));
}.bind(this), 250);
} else {
return this.filter(this.input.val());
}