use _emit iso _dispatchEvent

This commit is contained in:
Fabian Jakobs 2011-12-19 12:03:57 +01:00
commit d2a783f824
13 changed files with 52 additions and 52 deletions

View file

@ -83,7 +83,7 @@ var Text = function(parentEl) {
var size = this.$measureSizes();
if (size && (this.$characterSize.width !== size.width || this.$characterSize.height !== size.height)) {
this.$characterSize = size;
this._dispatchEvent("changeCharaterSize", {data: size});
this._emit("changeCharaterSize", {data: size});
}
};