var someFunction = function() { ... };
$xfn(someFunction);
var someClass = function() { ... };
someClass.prototype = { ... };
$xfn.extend(someClass.prototype);
someFunction.pre.add(function(result) {
// Do something.
arguments[0] = result + '';
// Always return the resulting arguments object to continue normally.
return arguments;
});
someFunction.post.add(function(result) {
// Process the arguments.
result = result * 10;
// Always return the resulting arguments object to continue normally.
return arguments;
});