提交 f2c85d4e 编写于 作者: 雪洛's avatar 雪洛

Revert "update: 修复小程序端不能直接在模版内使用$emit的Bug askID:82865"

This reverts commit e3674be5.
上级 e3674be5
...@@ -5765,13 +5765,12 @@ function internalMixin(Vue) { ...@@ -5765,13 +5765,12 @@ function internalMixin(Vue) {
var oldEmit = Vue.prototype.$emit; var oldEmit = Vue.prototype.$emit;
Vue.prototype.$emit = function(event) { Vue.prototype.$emit = function(event) {
if (this.$scope && event) { if (this.$scope && event) {
this.$scope['triggerEvent'](event, { this.$scope['triggerEvent'](event, {
__args__: toArray(arguments, 1) __args__: toArray(arguments, 1)
}); });
} else {
return oldEmit.apply(this, arguments)
} }
return oldEmit.apply(this, arguments)
}; };
Vue.prototype.$nextTick = function(fn) { Vue.prototype.$nextTick = function(fn) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册