Skip to content

Commit

Permalink
fix not working when amongs text
Browse files Browse the repository at this point in the history
a bug was invoked in #209
  • Loading branch information
ichord committed Dec 21, 2014
1 parent 7751ed3 commit 9b6465d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/jquery.atwho.js
Expand Up @@ -312,7 +312,7 @@ Controller = (function() {
if (!(range = this.mark_range())) {
return;
}
return range.startContainer.parentNode.textContent || "";
return (range.startContainer.textContent || "").slice(0, range.startOffset);
}
};

Expand Down

0 comments on commit 9b6465d

Please sign in to comment.