Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3535 closed enhancement (fixed)

dojo.parser enhancements (as discussed with bill)

Reported by: alex Owned by: alex
Priority: high Milestone: 0.9beta
Component: Core Version: 0.9
Keywords: Cc: bill
Blocked By: Blocking:


Several issues exist with dojo.parser today:

  • it's not possible to register a preamble
  • connect is the default, not replace
  • there's no way to impedence match for classes that don't follow the (args, node) convention in their ctor
  • the code isn't well factored and does too much hitch()-ing
  • dojo/connect should be named dojo/method
  • dojo.parser has no tests

Change History (4)

comment:1 Changed 15 years ago by alex

(In [9314]) tests for dojo.parser. Refs #3535

comment:2 Changed 15 years ago by alex

(In [9316]) adding first-argument preamble plucking. Makes impedence matching easier when you don't want to muge the prototoype's preamble. Refs #3535

comment:3 Changed 15 years ago by alex

Resolution: fixed
Status: newclosed

(In [9317]) updating the parser to:

  • handle preambles
  • enhance the semantics for <script> parsing. Mixin assignment is now the default, connects happen via mode="connect"
  • array parsing enhancements (now snarfs surrounding whitespace)
  • markupFactory() for classes which don't wish to modify their ctor semantics
  • less hitch()-ing

Fixes #3535. Still need more tests (esp for markupFactory).

comment:4 Changed 15 years ago by alex

(In [9318]) test for markupFactory(). Refs #3535

Note: See TracTickets for help on using tickets.