Closed Bug 41145 Opened 26 years ago Closed 26 years ago

XBL bindinginit event handler needed for XBL bindings.

Categories

(Core :: XBL, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: andreww, Assigned: hyatt)

References

Details

(Keywords: crash, Whiteboard: [nsbeta3+] fix in hand)

Right now there is no way for a binding to know that it has now been "called" so that if there is any sort of js actions or initializations which need to be done, the will occur. This is a fundamental property of bindings IMHO - equivalent to "onload" in regular xul or html. There are many uses for this which I and others can spell out, and would make some difficult problems now much easier.
Keywords: nsbeta2
[nsbeta2-] Please renominate if there are specific problems this would fix that we must hold PR2 for.
Whiteboard: [nsbeta2-]
This is needed to make toolbar collapsing work properly. We should check to see if that has had nsbeta2+ marked on it.
Status: NEW → ASSIGNED
I believe the toolbar collapse bug is bug #37766 (which got nsbeta2-). A second use case is having <radiogroup> guarantee that one and only one of its child <radio>s is selected on initialization.
This requires re-evaluation because of a new wrinkle. I need to add support for this in order to avoid having to modify the syntax of every tree in the product on the tree/grid switch. It also solves another XBL problem exposed yesterday.
Whiteboard: [nsbeta2-] → [nsbeta2]
basically, there are several widgets that need this... <menulist> when moved into XBL will need this. <radiogroup> needs it. <toolbox> needs it. and now <tree> is going to need it. This is also a complaint of external developers, and so I think it may also be pretty important for mozilla. cc'ing brendan.
OS: Mac System 8.5 → All
Whiteboard: [nsbeta2]
Giving [nsbeta2+]Exception Feature status. Part of tree to grid re-write.
Whiteboard: [nsbeta2+]Exception Feature
worked around this for the tree. don't think it needs to be nsbeta2+ now... definitely will need to be nsbeta3 though
Keywords: nsbeta2 → nsbeta3
Whiteboard: [nsbeta2+]Exception Feature
Blocks: 43992
Keywords: crash
Whiteboard: [nsbeta3+] fix in hand
Fixed. The handler is called "bindingattached".
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
verified fixed. bindingattached.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.