mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-22 04:45:12 +00:00
Use jQuery's trim and inArray so it works in IE8. Fixes #226
This commit is contained in:
parent
3e7fb81cf3
commit
cf80d8e67b
@ -723,9 +723,10 @@
|
||||
},
|
||||
|
||||
validateOrientation: function(orientation, fallback) {
|
||||
orientation = orientation.trim().toLowerCase();
|
||||
if(['auto', 'bottom', 'top'].indexOf(orientation) == '-1')
|
||||
orientation = $.trim(orientation || '').toLowerCase();
|
||||
if($.inArray(orientation, ['auto', 'bottom', 'top']) === -1){
|
||||
orientation = fallback;
|
||||
}
|
||||
return orientation
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user