Fix typo: self.emit -> self.$emit