(id, childrenKey, data)
| 113 | }; |
| 114 | |
| 115 | var updateCache = function (id, childrenKey, data) { |
| 116 | var tableCache = table.cache[id]; |
| 117 | layui.each(data || tableCache, function (index, item) { |
| 118 | var itemDataIndex = item[LAY_DATA_INDEX] || ''; |
| 119 | if (itemDataIndex.indexOf('-') !== -1) { |
| 120 | tableCache[itemDataIndex] = item; |
| 121 | } |
| 122 | item[childrenKey] && updateCache(id, childrenKey, item[childrenKey]); |
| 123 | }); |
| 124 | }; |
| 125 | |
| 126 | var updateOptions = function (id, options, reload) { |
| 127 | var that = getThisTable(id); |
no outgoing calls
no test coverage detected