提交 b0f77067 编写于 作者: fxy060608's avatar fxy060608

fix(mp): remove SharedObject

上级 cf320163
......@@ -696,13 +696,7 @@ var uid = 0;
* directives subscribing to it.
*/
var Dep = function Dep () {
// fixed by xxxxxx (nvue vuex)
/* eslint-disable no-undef */
if(typeof SharedObject !== 'undefined'){
this.id = SharedObject.uid++;
} else {
this.id = uid++;
}
this.id = uid++;
this.subs = [];
};
......@@ -739,7 +733,7 @@ Dep.prototype.notify = function notify () {
// can be evaluated at a time.
// fixed by xxxxxx (nvue shared vuex)
/* eslint-disable no-undef */
Dep.SharedObject = typeof SharedObject !== 'undefined' ? SharedObject : {};
Dep.SharedObject = {};
Dep.SharedObject.target = null;
Dep.SharedObject.targetStack = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册