﻿/// <reference path="intellisense/intellisense.js" />

/******************************************************************************
**      Desc: Extends the Function object.
**		Auth: Aleksey Fomichenko
**		Date: 09/19/2007
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:		Description:
**		-----------	-----------	-----------------------------------------------
**		09/19/2007	Aleksey F.	File created.
*******************************************************************************/

Function.prototype.registerStaticClass = function (typeName) 
{
	/// <summary>Registers a class and then makes the prototype members static.</summary>
    /// <param name="typeName" type="String"></param>
    
	// register the class
	this.registerClass(typeName);

	// make this class "static"
	// unfortunately, AJAX.net does not provide a method called "registerStaticClass", so this is a workaround...
	for (var i in this.prototype) {
		this[i] = this.prototype[i];
	}
};


// Notify ScriptManager that this is the end of the script.
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

