Slide 85
Slide 85 text
var Inspector = function(){
this.stage.selection.bind('change', this.paint.bind(this));
};
Inspector.prototype.paint = function(){
if (this.rendering) return;
this.rendering = true;
requestAnimationFrame(this.render.bind(this));
};
Inspector.prototype.render = function(){
// ...
this.rendering = false;
};