in seriously.js [2237:2270]
EffectNode.prototype.updateReady = function () {
var i,
input,
key,
effect,
ready = true,
method;
effect = this.effect;
for (key in effect.inputs) {
if (effect.inputs.hasOwnProperty(key)) {
input = this.effect.inputs[key];
if (input.type === 'image' &&
(!this.sources[key] || !this.sources[key].ready) &&
(!effect.requires || effect.requires.call(this, key, this.inputs))
) {
ready = false;
break;
}
}
}
if (this.ready !== ready) {
this.ready = ready;
this.emit(ready ? 'ready' : 'unready');
method = ready ? 'setReady' : 'setUnready';
if (this.targets) {
for (i = 0; i < this.targets.length; i++) {
this.targets[i][method]();
}
}
}
};