define(["../../core","../../selector"// css is assumed],function(jQuery){returnfunction(elem,el){// isHidden might be called from jQuery#filter function;// in that case, element will be second argumentelem=el||elem;returnjQuery.css(elem,"display")==="none"||!jQuery.contains(elem.ownerDocument,elem);};});