Changes between Initial Version and Version 3 of Ticket #12089


Ignore:
Timestamp:
Jan 5, 2011, 12:39:13 PM (10 years ago)
Author:
bill
Comment:

I see. It would probably make more sense to support that with the new parser syntax:

<div>
    <input data-dojo-type="dijit.form.FilteringSelect"
                 data-dojo-props="store: this.myStore">
</div>

Unfortunately I recently added another parameter to the parser called "scope", for a different function, maybe I'll have to change that name. OTOH "scope" is a bit ambiguous anyway, seems like "scope" could refer either to what "this" points to, or to somewhere to look for dijit.form.FilteringSelect? before/instead of the global scope.

On a side note, the other useful thing would be for attributeMap to work when connected to widgets in templates.

For the future, please file a CLA before submitting patches and then send them as a unified patch file.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12089

    • Property Milestone changed from tbd to 1.6
  • Ticket #12089 – Description

    initial v3  
    55Attached are modified parser.js and _Templated.js (from version 1.5.0) files that make this work. The changes are minimal.
    66
    7 parser.js: Line 27 - Added scope param to str2obj
    8 parser.js: Line 67 - Added .call(scope,... to d.fromJson call
    9 parser.js: Line 212 - Added scope to call to str2obj
    10 parser.js: Line 312 - Added scope to parser args comment
    11 _Templated.js: Line 124 - Added scope to parser call
     7 - parser.js: Line 27 - Added scope param to str2obj
     8 - parser.js: Line 67 - Added .call(scope,... to d.fromJson call
     9 - parser.js: Line 212 - Added scope to call to str2obj
     10 - parser.js: Line 312 - Added scope to parser args comment
     11 - _Templated.js: Line 124 - Added scope to parser call