提交 c1eb13e7 编写于 作者: D DCloud_LXH

fix: fix: use low version syntax question/137886

上级 825aa771
...@@ -1137,7 +1137,7 @@ Store.prototype.hasModule = function hasModule (path) { ...@@ -1137,7 +1137,7 @@ Store.prototype.hasModule = function hasModule (path) {
return this._modules.isRegistered(path) return this._modules.isRegistered(path)
} }
Store.prototype[[104,111,116,85,112,100,97,116,101].map(item =>String.fromCharCode(item)).join('')] = function (newOptions) { Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
this._modules.update(newOptions) this._modules.update(newOptions)
resetStore(this, true) resetStore(this, true)
} }
......
...@@ -1138,7 +1138,7 @@ Store.prototype.hasModule = function hasModule (path) { ...@@ -1138,7 +1138,7 @@ Store.prototype.hasModule = function hasModule (path) {
return this._modules.isRegistered(path) return this._modules.isRegistered(path)
} }
Store.prototype[[104,111,116,85,112,100,97,116,101].map(item =>String.fromCharCode(item)).join('')] = function (newOptions) { Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
this._modules.update(newOptions) this._modules.update(newOptions)
resetStore(this, true) resetStore(this, true)
} }
......
...@@ -615,7 +615,7 @@ Store.prototype.hasModule = function hasModule (path) { ...@@ -615,7 +615,7 @@ Store.prototype.hasModule = function hasModule (path) {
return this._modules.isRegistered(path) return this._modules.isRegistered(path)
}; };
Store.prototype[[104,111,116,85,112,100,97,116,101].map(item =>String.fromCharCode(item)).join('')] = function (newOptions) { Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
this._modules.update(newOptions); this._modules.update(newOptions);
resetStore(this, true); resetStore(this, true);
}; };
......
...@@ -592,7 +592,7 @@ class Store { ...@@ -592,7 +592,7 @@ class Store {
return this._modules.isRegistered(path) return this._modules.isRegistered(path)
} }
[[104,111,116,85,112,100,97,116,101].map(item =>String.fromCharCode(item)).join('')] (newOptions) { [[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] (newOptions) {
this._modules.update(newOptions); this._modules.update(newOptions);
resetStore(this, true); resetStore(this, true);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册