vlad, looks like you caused this.
confirming, for what it is worth.
Status: UNCONFIRMED → NEW
Ever confirmed: true
It doesn't matter that it's not registerSelf()ed, because the onComponentLoad code is (correctly) not run at registerSelf time. The problem is that calEvent depends on the CalDateTime constructor definition, which is never run: we never try to get a class object for the CID-less "item base" code, of course, and calEvent doesn't indicate that it needs such a function run. Patch (tested, even!) coming up.
Status: NEW → ASSIGNED
Created attachment 179859 [details] [diff] [review] Perform base initialization the first time we create a class object. I thought about chaining through different dependencies in the componentData, tracking initialization state, etc., but then I decided I'd rather do real work. So I moved the parts that are module-shared but not really part of the ItemBase delegation-target object into calItemModule.js for a one-time init. Works for me in xpcshell, and I was getting the error before. Testing: still tasty.
Attachment #179859 - Flags: first-review?(mvl)
Attachment #179859 - Flags: first-review?(mvl) → first-review+
Status: ASSIGNED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.