Index: trunk/parsers/wikidom/lib/hype/models/es.DocumentModel.js |
— | — | @@ -500,7 +500,7 @@ |
501 | 501 | */ |
502 | 502 | es.DocumentModel.isContentOffset = function( data, offset ) { |
503 | 503 | // Content can't exist at the edges |
504 | | - if ( offset > 0 && offset < data.length - 1 ) { |
| 504 | + if ( offset > 0 && offset < data.length ) { |
505 | 505 | // Shortcut: if there's already content there, we will trust it's supposed to be there |
506 | 506 | if ( typeof data[offset] === 'string' || $.isArray( data[offset] ) ) { |
507 | 507 | return true; |
— | — | @@ -555,7 +555,7 @@ |
556 | 556 | */ |
557 | 557 | es.DocumentModel.isStructuralOffset = function( data, offset ) { |
558 | 558 | // Edges are always structural |
559 | | - if ( offset === 0 || offset === data.length - 1 ) { |
| 559 | + if ( offset === 0 || offset === data.length ) { |
560 | 560 | return true; |
561 | 561 | } |
562 | 562 | // Structual offsets will have elements on each side |