Permalink
Browse files

fix reference

  • Loading branch information...
1 parent 45f8b02 commit 8f9f3b74ed10a4f97809f120b27646a48406f4d9 @jhchen jhchen committed Jan 1, 2017
Showing with 2 additions and 2 deletions.
  1. +1 −1 themes/bubble.js
  2. +1 −1 themes/snow.js
View
@@ -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';
View
@@ -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());

0 comments on commit 8f9f3b7

Please sign in to comment.