Index: trunk/extensions/VisualEditor/modules/es/views/es.ContentView.js |
— | — | @@ -898,12 +898,12 @@ |
899 | 899 | } else if ( !leftPlain && !rightPlain ) { |
900 | 900 | // [formatted][formatted] pair, open/close any differences |
901 | 901 | for ( j = 1; j < left.length; j++ ) { |
902 | | - if ( es.inArray( left[j], right ) ) { |
| 902 | + if ( es.inArray( left[j], right ) === -1 ) { |
903 | 903 | out += render( 'close', left[j], stack ); |
904 | 904 | } |
905 | 905 | } |
906 | 906 | for ( j = 1; j < right.length; j++ ) { |
907 | | - if ( es.inArray( right[j], left ) ) { |
| 907 | + if ( es.inArray( right[j], left ) === -1 ) { |
908 | 908 | out += render( 'open', right[j], stack ); |
909 | 909 | } |
910 | 910 | } |