else
selector = jQuery.multiFilter( selector, this );
+ var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
return this.filter(function() {
- return jQuery.inArray( this, selector ) < 0;
+ return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
});
},
"1" :
ret;
}
+ // Opera sometimes will give the wrong display answer, this fixes it, see #2037
+ if ( jQuery.browser.opera && name == "display" ) {
+ var save = elem.style.display;
+ elem.style.display = "block";
+ elem.style.display = save;
+ }
// Make sure we're using the right name for getting the float value
if ( name.match( /float/i ) )