Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#6658 closed defect (invalid)

dijit.form.CheckBox appears broken...

Reported by: Jared Jurkiewicz Owned by: Douglas Hays
Priority: high Milestone: 1.2
Component: Dijit - Form Version: 1.1.0
Keywords: Cc:
Blocked By: Blocking:


dijit.form.CheckBox? appears broken...

I was trying to port over to intermediateChanges=true for ComboBox? when I uncovered that it appears CheckBox? is broken with regards to its notification functions. Namely, I can't interscept when the value changes anymore. In fact, if I try to connect to setAttribute(), I get errors from the console. I have a simple testcase which shows it.

Will be attaching soon.

Attachments (1)

test_Checkbox.html (1.0 KB) - added by Jared Jurkiewicz 14 years ago.
Testcase for this issue. Drop it as a peer to dojo/

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by Jared Jurkiewicz

Attachment: test_Checkbox.html added

Testcase for this issue. Drop it as a peer to dojo/

comment:1 Changed 14 years ago by Jared Jurkiewicz

I can't do: dojo.connect(addr, "onChange", new function() {alert("Here.")}); either.

I just get a: ls[i].apply is not a function [Break on this error] ls[i].apply(this, arguments);


It looks like connecting to some of the events is broken somehow.

comment:2 Changed 14 years ago by Jared Jurkiewicz

Priority: highnormal
severity: majornormal

Or I've done something stupid and just don't see it. When I changed my wire demos to use onChange for CheckBox?, they work. But if I just try to connect to onChange of the widget, it doesn't work. any ideas?

Lowering sev since it's working in the demo with the wire to onChange.

comment:3 Changed 14 years ago by Douglas Hays

Milestone: 1.2
Resolution: invalid
Status: newclosed

It works fine but you need to remove the "new" before the function() references. Only setAttribute will fire.

comment:4 Changed 14 years ago by Jared Jurkiewicz

Knew it was something retarded. Blah. Brain not working today.

comment:5 Changed 11 years ago by bill

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