08/06/28 04:25:12
ある程度時間をおいてもう一度自分のコードを読むと、少し気持ちわるいとこが見つかるよな
if (!current.call(x.obj)) break; → if (current.call(x.obj) === false) break;
attach: function(listener, index) {
if (typeof listener != 'function') return false;
if (isNaN(index = Number(index))) return this.work.push(listener);
this.work.splice(index, 0, listener);
return index;
},