View Single Post
  #1 (permalink)  
Old 11-22-2005, 10:42 AM
jpenguin jpenguin is offline
Junior Member
 
Posts: 5
Default duplicate parent check in DwtControl, already fixed in M2

Looks like this has already been fixed in 3.0.0.M2.
lines 48 and 58 of DwtControl.js are doing the same thing twice:
----------------
if (parent != null && !(parent instanceof DwtComposite))
throw new DwtException("Parent must be a subclass of Composite", DwtException.INVALIDPARENT, "DwtWidget");

....
if (!(parent instanceof DwtComposite))
throw new DwtException("DwtControl parent must be a DwtComposite", DwtException.INVALIDPARENT, "DwtControl");
__________________
jpenguin

Last edited by jpenguin; 11-22-2005 at 10:53 AM.. Reason: fixed
Reply With Quote