Changeset 1792


Ignore:
Timestamp:
2010-12-01 07:36:58 (2 years ago)
Author:
mpo
Message:

Fixes #397 #398
Note: correct getParent is introduced at time children are created.
This also introduces a first stab at some api-introduction-sample page (allows to test this stuff)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/control.js

    r1779 r1792  
    19251925     
    19261926        var next = segments.shift(); 
    1927         while (next == undefined || next.length == 0)  
     1927        while (segments.length > 0 && (next == undefined || next.length == 0))  
    19281928            next = segments.shift(); // ignore empty path segments 
    19291929        var target; 
    1930         if (next == '.') // me 
     1930        if (next == '.' || next == undefined || next.length == 0) // me 
    19311931            target = this; 
    19321932        else  
     
    20442044     
    20452045    /**  
    2046      * Gets the controls parent 
     2046     * Gets the controls parent. 
     2047     * This method returns undefined except for controls that actually have a parent 
     2048     * (See creation of child-controls in AbstractContainerControl). 
    20472049     * @return the parent control 
    20482050     * @type Control 
    20492051     */ 
    2050     Control.prototype.getParent = function(){ 
    2051         return this.lookupControl(".."); 
    2052     } 
     2052    Control.prototype.getParent = function(){ } 
    20532053     
    20542054     
  • trunk/samples/kauri-forms-sample/src/main/kauri/pages/index.html.xml

    r1784 r1792  
    8181    <ul> 
    8282      <li> 
     83        <a href="api.html">Sample introducing the API.</a> 
     84      </li> 
     85      <li> 
    8386        <a href="events.html">Events</a> 
    8487      </li> 
Note: See TracChangeset for help on using the changeset viewer.