Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-09-05 23:34:39 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-09-05 23:34:39 +0400
commite74c868b0080c99442dc2720f695ebbf96092b34 (patch)
tree4724f4066fe121b13d54ecda9cc24998bd40247d /mcs/class/System.Web
parent968e3c4b57f17c19b18c5658da4c87a9b3afd756 (diff)
* Control.cs: don't create the EventHandlerList until requested.
svn path=/branches/mono-1-0/mcs/; revision=33381
Diffstat (limited to 'mcs/class/System.Web')
-rw-r--r--mcs/class/System.Web/System.Web.UI/ChangeLog1
-rw-r--r--mcs/class/System.Web/System.Web.UI/Control.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/ChangeLog b/mcs/class/System.Web/System.Web.UI/ChangeLog
index 4914ca8d7a6..0ffb5a9a4fb 100644
--- a/mcs/class/System.Web/System.Web.UI/ChangeLog
+++ b/mcs/class/System.Web/System.Web.UI/ChangeLog
@@ -1,6 +1,7 @@
2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TemplateParser.cs: removed creation of StringWriter. It's not used.
+ * Control.cs: don't create the EventHandlerList until requested.
2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
diff --git a/mcs/class/System.Web/System.Web.UI/Control.cs b/mcs/class/System.Web/System.Web.UI/Control.cs
index 97ec7f757fc..b2d3ada71f2 100644
--- a/mcs/class/System.Web/System.Web.UI/Control.cs
+++ b/mcs/class/System.Web/System.Web.UI/Control.cs
@@ -70,7 +70,7 @@ namespace System.Web.UI
private bool _childControlsCreated;
private StateBag _viewState;
private bool _trackViewState;
- private EventHandlerList _events = new EventHandlerList();
+ private EventHandlerList _events;
private RenderMethod _renderMethodDelegate;
private bool autoID = true;
private bool creatingControls;