Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error callback with custom transport (select2#5981)
If custom transport does not return any object then calling error callback would result in `Uncaught TypeError: right-hand side of 'in' should be an object, got undefined`. This patch adds check if $request evaluates to something.
- Loading branch information