Update grunt-contrib-jshint to 0.3.0, ref gh-1204.

This commit is contained in:
Michał Gołębiowski
2013-03-14 00:23:36 +01:00
committed by Dave Methvin
parent 65a6648932
commit 4adde5d145
13 changed files with 38 additions and 31 deletions

View File

@@ -279,14 +279,14 @@ jQuery.extend({
options = elem.options,
values = jQuery.makeArray( value ),
i = options.length;
while ( i-- ) {
option = options[ i ];
if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) {
optionSet = true;
}
}
// force browsers to behave consistently when non-matching value is set
if ( !optionSet ) {
elem.selectedIndex = -1;