Minor fix

This commit is contained in:
Inez Korczynski 2011-11-11 00:28:25 +00:00
parent 807d9530ac
commit c03e5fbc49

View file

@ -827,7 +827,8 @@ es.DocumentModel.prototype.getWordBoundaries = function( offset ) {
return null;
}
var regex = this.data[offset].match( /\B/ ) ? /\b/ : /\B/,
var offsetItem = typeof this.data[offset] === 'string' ? this.data[offset] : this.data[offset][0],
regex = offsetItem.match( /\B/ ) ? /\b/ : /\B/,
start = offset,
end = offset,
item;