Ticket #7461: revision.diff

File revision.diff, 1.5 kB (added by neonstalwart, 2 months ago)

looks like order of params have swapped at some point and added ? to inline docs for optional params

  • Users/neonstalwart/Sites/ben/public/dojo/dojo/_base/_loader/bootstrap.js

     
    340340                return obj && p ? (obj[p]=value) : undefined; // Object 
    341341        } 
    342342 
    343         dojo.getObject = function(/*String*/name, /*Boolean*/create, /*Object*/context){ 
     343        dojo.getObject = function(/*String*/name, /*Boolean?*/create, /*Object?*/context){ 
    344344                // summary:  
    345345                //              Get a property from a dot-separated string, such as "A.B.C" 
    346346                //      description:  
     
    348348                //              the chain, or when you have an object reference in string format. 
    349349                //      name:    
    350350                //              Path to an property, in the form "A.B.C". 
     351                //      create:  
     352                //              Optional. Defaults to `false`. If `true`, Objects will be 
     353                //              created at any point along the 'path' that is undefined. 
    351354                //      context: 
    352355                //              Optional. Object to use as root of path. Defaults to 
    353356                //              'dojo.global'. Null may be passed. 
    354                 //      create:  
    355                 //              Optional. Defaults to `false`. If `true`, Objects will be 
    356                 //              created at any point along the 'path' that is undefined. 
    357357                return d._getProp(name.split("."), create, context); // Object 
    358358        } 
    359359