remove $ function and property from EventEmitter

This commit is contained in:
Joe Walker 2010-11-23 15:52:44 +00:00
commit 10843ba7e6
11 changed files with 60 additions and 59 deletions

View file

@ -79,11 +79,11 @@ var Selection = function(doc) {
if (!this.selectionAnchor) {
this.selectionAnchor = anchor;
this.$dispatchEvent("changeSelection", {});
this._dispatchEvent("changeSelection", {});
}
else if (this.selectionAnchor.row !== anchor.row || this.selectionAnchor.column !== anchor.column) {
this.selectionAnchor = anchor;
this.$dispatchEvent("changeSelection", {});
this._dispatchEvent("changeSelection", {});
}
};
@ -142,7 +142,7 @@ var Selection = function(doc) {
this.clearSelection = function() {
if (this.selectionAnchor) {
this.selectionAnchor = null;
this.$dispatchEvent("changeSelection", {});
this._dispatchEvent("changeSelection", {});
}
};
@ -181,7 +181,7 @@ var Selection = function(doc) {
}
if (changed)
this.$dispatchEvent("changeSelection", {});
this._dispatchEvent("changeSelection", {});
};
this.selectTo = function(row, column) {
@ -381,7 +381,7 @@ var Selection = function(doc) {
// only dispatch change if the cursor actually changed
if (cursor.row !== this.selectionLead.row || cursor.column !== this.selectionLead.column) {
this.selectionLead = cursor;
this.$dispatchEvent("changeCursor", { data: this.getCursor() });
this._dispatchEvent("changeCursor", { data: this.getCursor() });
}
};