Changeset 13954

Show
Ignore:
Timestamp:
06/09/08 16:16:40 (6 months ago)
Author:
bill
Message:

Fix comments, refs #5962 !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/Form.js

    r13339 r13954  
    5858                 
    5959                setValues: function(/*object*/obj){ 
    60                         // summary: fill in form values from a JSON structure 
     60                        // summary: Fill in form values from according to an Object (in the format returned by getValues()) 
    6161 
    6262                        // generate map from name --> [list of widgets with that name] 
     
    171171 
    172172                getValues: function(){ 
    173                         // summary: generate JSON structure from form values 
     173                        // summary: 
     174                        //              Returns Object representing form values. 
     175                        // description: 
     176                        //              Returns name/value hash for each form element. 
     177                        //              If there are multiple elements w/the same name, value is an array, 
     178                        //              unless they are radio buttons in which case value is a scalar since only 
     179                        //              one can be checked at a time. 
     180                        // 
     181                        //              If the name is a dot separated list (like a.b.c.d), creates a nested structure. 
     182                        //              Only works on widget form elements. 
     183                        // example: 
     184                        //      | { name: "John Smith", interests: ["sports", "movies"] } 
    174185 
    175186                        // get widget values