linux-packaging-mono/mcs/class/System.Web.Extensions/Resources/MicrosoftAjaxWebFormsExtension.js
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

18 lines
912 B
JavaScript

Sys.WebForms.PageRequestManager.getInstance = function Sys$WebForms$PageRequestManager$getInstance(formElement) {
/// <param name="formElement" domElement="true"></param>
/// <returns type="Sys.WebForms.PageRequestManager"></returns>
var e = Function._validateParams(arguments, [
{name: "formElement", domElement: true}
]);
return formElement._pageRequestManager;
}
Sys.WebForms.PageRequestManager._initialize = function Sys$WebForms$PageRequestManager$_initialize(scriptManagerID, formElement) {
if (formElement._pageRequestManager) {
throw Error.invalidOperation(Sys.WebForms.Res.PRM_CannotRegisterTwice);
}
formElement._pageRequestManager = new Sys.WebForms.PageRequestManager();
formElement._pageRequestManager._application = formElement._application;
formElement._pageRequestManager._initializeInternal(scriptManagerID, formElement);
}