提交 b895106c 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/o2_fix' into 'wrdp'

修复JSONData的some方法

See merge request o2oa/o2oa!2217
......@@ -1873,6 +1873,7 @@ MWF.xScript.CMSJSONData = function(data, callback, key, parent){
var o = {};
for (var k in data) o[k] = {"configurable": true, "enumerable": true, "get": getter.apply(this, [data, callback, k, this]),"set": setter.apply(this, [data, callback, k, this])};
o["length"] = {"get": function(){return Object.keys(data).length;}};
o["some"] = {"get": function(){return data.some;}};
MWF.defineProperties(this, o);
var methods = {
......
......@@ -1993,6 +1993,7 @@ MWF.xScript.JSONData = function(data, callback, key, parent, _form){
var o = {};
for (var k in data) o[k] = {"configurable": true, "enumerable": true, "get": getter.apply(this, [data, callback, k, this]),"set": setter.apply(this, [data, callback, k, this])};
o["length"] = {"get": function(){return Object.keys(data).length;}};
o["some"] = {"get": function(){return data.some;}};
MWF.defineProperties(this, o);
var methods = {
......
......@@ -1839,6 +1839,7 @@ MWF.xScript.JSONData = function(data, callback, key, parent, _form){
var o = {};
for (var k in data) o[k] = {"configurable": true, "enumerable": true, "get": getter.apply(this, [data, callback, k, this]),"set": setter.apply(this, [data, callback, k, this])};
o["length"] = {"get": function(){return Object.keys(data).length;}};
o["some"] = {"get": function(){return data.some;}};
MWF.defineProperties(this, o);
var methods = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册