Index: trunk/parsers/wikidom/lib/es/es.Surface.js |
— | — | @@ -578,7 +578,7 @@ |
579 | 579 | if ( typeof location === 'undefined' ) { |
580 | 580 | location = this.location; |
581 | 581 | } |
582 | | - if ( !location.block || !location.offset ) { |
| 582 | + if ( typeof location.block === 'undefined' || typeof location.offset === 'undefined' ) { |
583 | 583 | throw 'Invalid selection error. Properties for from and to locations expected.'; |
584 | 584 | } |
585 | 585 | this.location.block.insertContent( location.offset, content ); |