Author: gonzalo
Date: 2005-09-28 01:45:32 -0400 (Wed, 28 Sep 2005)
New Revision: 50925
Modified:
branches/mono-1-1-9/mcs/class/System.Web/System.Web.UI/ChangeLog
branches/mono-1-1-9/mcs/class/System.Web/System.Web.UI/Control.cs
Log:
from head
Modified: branches/mono-1-1-9/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- branches/mono-1-1-9/mcs/class/System.Web/System.Web.UI/ChangeLog
2005-09-28 05:45:04 UTC (rev 50924)
+++ branches/mono-1-1-9/mcs/class/System.Web/System.Web.UI/ChangeLog
2005-09-28 05:45:32 UTC (rev 50925)
@@ -1,3 +1,7 @@
+2005-09-28 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * Control.cs: fix HasChildViewStates.
+
2005-09-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* LosFormatter.cs: when the default ctor is used, MAC is disabled.
Modified: branches/mono-1-1-9/mcs/class/System.Web/System.Web.UI/Control.cs
===================================================================
--- branches/mono-1-1-9/mcs/class/System.Web/System.Web.UI/Control.cs
2005-09-28 05:45:04 UTC (rev 50924)
+++ branches/mono-1-1-9/mcs/class/System.Web/System.Web.UI/Control.cs
2005-09-28 05:45:32 UTC (rev 50925)
@@ -87,7 +87,6 @@
string uniqueID;
string _userId;
ControlCollection _controls;
- IDictionary _childViewStates;
Control _namingContainer;
Page _page;
Control _parent;
@@ -455,23 +454,18 @@
return HttpContext.Current;
}
}
- protected EventHandlerList Events //DIT
- {
- get
- {
+
+ protected EventHandlerList Events {
+ get {
if (_events == null)
- {
- _events = new EventHandlerList();
- }
+ _events = new EventHandlerList ();
return _events;
}
}
- protected bool HasChildViewState //DIT
- {
- get
- {
- if (_childViewStates == null) return false;
- return true;
+
+ protected bool HasChildViewState {
+ get {
+ return (pendingVS != null && pendingVS.Count >
0);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches