Looking at the MS Ajax libraries, I notice they define object methods like so:
addErrors: function Sys_Mvc_FormContext$addErrors(messages) {
/// <param name="messages" type="Array" elementType="String">
/// </param>
if (!Sys.Mvc._validationUtil.arrayIsNullOrEmpty(messages)) {
Array.addRange(this._errors, messages);
this._onErrorCountChanged();
}
Why the named function (Sys_Mvc_FormContext$addErrors(messages))? Why not just use:
addErrors: function(messages) {
I don't think I've seen this outside of MS Ajax...