diff --git a/src/add/array.js b/src/add/array.js index bcb2243e..d210a9ed 100644 --- a/src/add/array.js +++ b/src/add/array.js @@ -22,6 +22,15 @@ if (!AP.flat) { }; } +AP.find = function(fn) { + for (let i=0, l=this.length; i rec.type === 'flip'); + if (fpos >= 0 && oplist.length > 1) { + let oprec = oplist.splice(fpos,1); + oplist.push(oprec[0]); + } API.conf.save(); func.opRender(); } @@ -283,6 +288,7 @@ CAM.init = function(kiri, api) { // $('camops').style.display = isCamMode && isArrange ? 'flex' : ''; let oplist = current.process.ops; if (!(isCamMode && oplist)) return; + oplist = oplist.filter(rec => !Array.isArray(rec)); let mark = Date.now(); let html = []; $('ophint').style.display = oplist.length === 0 ? '' : 'none';