Closed Bug 199011 Opened 22 years ago Closed 21 years ago

XBL binding properties are not available to binding constructor if they use the 'inline' syntax.

Categories

(Core :: XBL, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: stef, Assigned: hyatt)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021029 Phoenix/0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030317 Code running in a XBL binding constructor cannot access properties defined like so: <property name="prop" getter="return 'blah';"/> The alternate syntax works fine: <property name="prop"> <getter> return 'blah'; </getter> </property> This is inconsintent, and either one syntax should be used, or both should be supported equally. Reproducible: Always Steps to Reproduce: 1. See testcase Actual Results: The debug window dump shows that the second property in the test case returns 'undefined'. Expected Results: Both properties should have been accessible from the constructor.
Need to use onget and onset properties insted of getter and setter (see http://xulplanet.com/tutorials/xultu/xblprops.html).
Thanks. I guess this has changed over time.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: