新版设计改了 function _fire() {
memory = options === 'memory' && memory;
firingIndex = firingStart || 0;
firingStart = 0;
firingLength = list.length;
for (; list && firingIndex < firingLength; firingIndex++) {
list[firingIndex].apply(memory[0],memory[1]);
}
}
memory = options === 'memory' && memory;
firingIndex = firingStart || 0;
firingStart = 0;
firingLength = list.length;
for (; list && firingIndex < firingLength; firingIndex++) {
list[firingIndex].apply(memory[0],memory[1]);
}
}
2016-10-14
@阿辉2 老师就想让你痛苦痛苦,就是想先把你搞的死死的,然后让你变一个“带把”(吊)的人,兄弟好好享受吧,你要知足啊 /哈哈大笑
2016-10-13
最赞回答 / 夜晚的一场梦
懂了,汗,自己突然就想通了,原因在于这行代码:<...code...>call里面第二个deferred对象作为参数穿进去了,正好对应<...code...>这个newDefer, 这样就对啦,哈哈
2016-10-12