Opened 7 years ago

Last modified 23 months 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 7 years ago by ben hockey

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".

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.11
Owner: set to dylan
Status: newassigned

comment:3 Changed 4 years ago by dylan

Priority: undecidedlow

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 4 years ago by dylan

Milestone: 1.111.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 3 years ago by dylan

Milestone: 1.121.13

Ticket planning... move current 1.12 tickets out to 1.13 that likely won't get fixed in 1.12.

comment:6 Changed 23 months ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.