Changes between Initial Version and Version 15 of Ticket #13778


Ignore:
Timestamp:
Jan 11, 2012, 4:56:01 AM (10 years ago)
Author:
bill
Comment:

OK thanks, I 'll check that in. I split the (debated) auto-load feature request into #14591 so we can use this ticket for the MID feature.

BTW, the best way to create an initialized array in javascript is like:

var nodes = [dhtml.byId("objI1"), dhtml.byId("objI2"), 
         dhtml.byId("contI1"), dhtml.byId("objI3")];

or if you wanted to get fancy, something like:

array.map(["objI1", "objI2", "contI1", "objI3"], dhtml.byId)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13778

    • Property Cc ben hockey cjolif added
    • Property Milestone changed from future to 1.8
    • Property Summary changed from parser auto-load widget modules to data-dojo-type support MID in addition to global variable
  • Ticket #13778 – Description

    initial v15  
    1 Change parser syntax to:
     1Make the parser support the syntax:
    22
    33{{{
     
    55}}}
    66
    7 and make the parser auto-load any modules not already there.   This assumes that each module's factory returns the constructor for said widget.
    8 
    9 dojo.parser.parse() will return a Deferred to indicate when parsing is finished.
    10 
    11 This will be somewhat complicated to implement.    It's easy to pause after parse() has done it's scanning work, before it calls instantiate(), and wait for all the widgets to load.  However, during the parsing stage the parser checks each widget's prototype for _noScript and stopParser flags.   Not sure how to deal with that.
     7This assumes that each module's factory returns the constructor for said widget.