mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Fix focusable highlights
!$element.is( ':visible' ) - jQuery .is() returns boolean based on the parameter. $element.not( ':visible' ) - jQuery .not() returns a filtered jQuery collection with elements matching the parameter removed. Change-Id: Iedf55f3453514ee710bbb6d702bbf9a5570a4a1d
This commit is contained in:
parent
92c38eab85
commit
1e298ffbc0
|
@ -152,7 +152,7 @@ ve.ce.FocusableNode.prototype.createHighlight = function () {
|
|||
this.$.find( '*' ).add( this.$ ).each(
|
||||
ve.bind( function( i, element ) {
|
||||
var offset, $element = $( element );
|
||||
if ( $element.not( ':visible' ) ) {
|
||||
if ( !$element.is( ':visible' ) ) {
|
||||
return true;
|
||||
}
|
||||
offset = ve.Element.getRelativePosition(
|
||||
|
|
Loading…
Reference in a new issue