Skip to content

Commit

Permalink
Merge pull request #33 from timcooper/master
Browse files Browse the repository at this point in the history
Add IE7 Support
  • Loading branch information
Jamie Appleseed committed Apr 5, 2012
2 parents 79e4d21 + 6fbd845 commit 0b21ac9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jquery.select-to-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ THE SOFTWARE.
for (var i=0; i < raw_attrs.length; i++) {
var key = raw_attrs[i].nodeName;
var value = raw_attrs[i].nodeValue;
if ( key !== 'name' && key !== 'id' ) {
attrs[key] = raw_attrs[i].nodeValue;
if ( key !== 'name' && key !== 'id' && typeof context.$select_field.attr(key) !== 'undefined' ) {
attrs[key] = value;
}
};
$text_field.attr( attrs );
Expand Down Expand Up @@ -133,7 +133,7 @@ THE SOFTWARE.
var public_methods = {
init: function( customizations ) {

if ( $.browser.msie && parseInt($.browser.version, 10) <= 7) {
if ( $.browser.msie && parseInt($.browser.version, 10) <= 6) {

return this;

Expand Down

0 comments on commit 0b21ac9

Please sign in to comment.