Opened 9 years ago
Last modified 3 years ago
#15529 assigned defect
dojo.hitch documentation confuses scope with context
Reported by: | Randy Hudson | Owned by: | dylan |
---|---|---|---|
Priority: | low | Milestone: | 1.14 |
Component: | Core | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The doc for dojo.hitch says:
"Returns a function that will only ever execute in the a given scope"
Where "scope" is mistakenly used instead of "context". This causes confusion by programmers using dojo.hitch and often leads them to use dojo.hitch when it is completely unnecessary. For example:
dojo.hitch(obj, obj.someFunction)();
Which is just a wasteful way to do:
obj.someFunction();
Change History (6)
comment:1 Changed 9 years ago by
comment:2 Changed 5 years ago by
Milestone: | tbd → 1.11 |
---|---|
Owner: | set to dylan |
Status: | new → assigned |
comment:3 Changed 5 years ago by
Priority: | undecided → low |
---|
I hope to get to this ticket in time for 1.11 (setting a deadline of end of January). If not, this will get moved to 1.12.
comment:4 Changed 5 years ago by
Milestone: | 1.11 → 1.12 |
---|
Ok, after massive triage, ended up with about 80 tickets for 1.11 and 400 or so for 1.12. That's a bit unrealistic, so first I changed all 1.12 to 1.13 (with the plan to move some forward to the new 1.12. Now, I'm moving some of the 1.11 tickets that are less likely to get done this month without help to 1.11. Feel free to help out in January if you want to see this ticket land in 1.11.
comment:5 Changed 4 years ago by
Milestone: | 1.12 → 1.13 |
---|
Ticket planning... move current 1.12 tickets out to 1.13 that likely won't get fixed in 1.12.
comment:6 Changed 3 years ago by
Milestone: | 1.13 → 1.14 |
---|
if anyone takes this ticket... it would probably be worthwhile to look for all usage of "scope" and "context" in our code and docs to see that they are being used properly. i know i've seen other references where "scope" is used when it should be "context".