Skip to content

Commit

Permalink
eliminate use of removed browser attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ibroadfo committed Jul 16, 2013
1 parent 0415bd3 commit 877240d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.select-to-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ THE SOFTWARE.
var public_methods = {
init: function( customizations ) {

if ( $.browser.msie && parseInt($.browser.version, 10) <= 6) {
if ( /msie/.test(navigator.userAgent.toLowerCase()) && parseInt(navigator.appVersion,10) <= 6) {

return this;

Expand Down

1 comment on commit 877240d

@yaplex
Copy link

@yaplex yaplex commented on 877240d Oct 30, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change actually does not work in IE8 and IE9, navigator.AppVersion == 4 in IE8
(in fact I used IE11 with compatibility mode for IE8)

Please sign in to comment.