Results 1 to 2 of 2

Thread: duplicate parent check in DwtControl

Threaded View

  1. #1
    Join Date
    Nov 2005
    Posts
    5
    Rep Power
    9

    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");
    Last edited by jpenguin; 11-22-2005 at 10:53 AM. Reason: fixed
    jpenguin

Similar Threads

  1. <4.5.2 Upgrade Notice
    By jholder in forum Installation
    Replies: 43
    Last Post: 03-03-2007, 02:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •