Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#10650 closed defect (fixed)

Missing 'this' when dijit.form.Button's loadDropDown connects to dropDown's onLoad method

Reported by: Sam Foster Owned by:
Priority: high Milestone: 1.4.1
Component: Dijit - Form Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:

Description

var handler = dojo.connect(dropDown, "onLoad", function(){
  dojo.disconnect(handler);
  this.openDropDown();
});

'this' is referenced in the function, but not set in the connect() call.

Change History (3)

comment:1 Changed 10 years ago by Sam Foster

Resolution: fixed
Status: newclosed

(In [21200]) Adding 'this' to the connect in Button's loadDropDown so the function is called with the widget as context. fixes #10650

comment:2 Changed 10 years ago by Adam Peller

Milestone: tbd1.4.1

please don't forget the milestone

comment:3 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.