I would like to build my own custom render function, as a test, I tried this code, but when I try it, the original function is used in the Passage instance. What is weird to me is that orender still exists on the instance as well and points to the correct function.
What would really be super is if I could actually get at the base render function, but it seems to exist in a scope that is only visible to the default Passage.render.
Passage.orender = Passage.render;
Passage.render = function(e) {
console.log("Rendering " + e);
Passage.orender(e);
};
Passage.prototype.orender = Passage.prototype.render;
Passage.render = function(e) {
console.log("Rendering " + e);
this.orender(e);
};