Opened 10 years ago
Closed 10 years ago
#12266 closed defect (fixed)
dojo.Stateful and name properties
Reported by: | Mark Wubben | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | high | Milestone: | 1.6 |
Component: | General | Version: | 1.6.0b1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I've tested this in Safari 5.0.3 and Chrome 10.0.648.18 dev. The way Stateful registers callbacks is by setting property names on the _watchCallbacks
method. However, if the property name is name
, the browser will automatically set it back to an empty string.
We should probably create a callbacks
object (that could still be set on _watchCallbacks
).
Tested with trunk, but probably also applies to 1.5.
Note: See
TracTickets for help on using
tickets.
Does that mean you can't watch("name", ...)?