Skip to content

Commit

Permalink
fix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jan 1, 2017
1 parent 45f8b02 commit 8f9f3b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/bubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BubbleTooltip extends BaseTooltip {
super(quill, bounds);
this.quill.on(Emitter.events.EDITOR_CHANGE, (type, range, oldRange, source) => {
if (type !== Emitter.events.SELECTION_CHANGE) return;
if (range != null && range.length > 0 && source === Quill.sources.USER) {
if (range != null && range.length > 0 && source === Emitter.sources.USER) {
this.show();
// Lock our width so we will expand beyond our offsetParent boundaries
this.root.style.left = '0px';
Expand Down
2 changes: 1 addition & 1 deletion themes/snow.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SnowTooltip extends BaseTooltip {
});
this.quill.on(Emitter.events.SELECTION_CHANGE, (range, oldRange, source) => {
if (range == null) return;
if (range.length === 0 && source === Quill.sources.USER) {
if (range.length === 0 && source === Emitter.sources.USER) {
let [link, offset] = this.quill.scroll.descendant(LinkBlot, range.index);
if (link != null) {
this.linkRange = new Range(range.index - offset, link.length());
Expand Down

0 comments on commit 8f9f3b7

Please sign in to comment.