I want to add my own formatters to all my XTemplates. I dug around in the source and found I can just add functions to Ext.util.Format like:

Code:
Ext.util.Format.myFormatter = function(v){
    return doSomething(v)
};
Does anyone else do this? Is there a better (correct) way to extend the default format functions?