Skip to content

Commit

Permalink
Fix for trim() in IE6
Browse files Browse the repository at this point in the history
  • Loading branch information
manusajith committed Nov 27, 2013
1 parent 11410b7 commit 1274c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets/javascripts/autocomplete-rails-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}
var remember_string = this.value;
jQuery(this).bind('keyup.clearId', function(){
if(jQuery(this).val().trim() != remember_string.trim()){
if(jQuery.trim(jQuery(this).val()) != jQuery.trim(remember_string)){
jQuery(jQuery(this).attr('data-id-element')).val("");
jQuery(this).unbind('keyup.clearId');
}
Expand Down

0 comments on commit 1274c3b

Please sign in to comment.