Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Define public methods within prototypes to allow familiar JavaScript inheritance patterns
Description
Currently the Layout Handlers attach all of their functionality directly on a new instance using the "this" pointer. We should be attaching these public methods onto the LayoutHandler's prototype, allowing for more efficient sharing of code.
Environment
None
Activity
Show:
Colin Clark July 17, 2008 at 1:29 AM
As Michelle's comment notes, we're moving away from the use of prototypes, so this bug is no longer relevant.
Michelle D'Souza July 16, 2008 at 12:18 AM
We will actually move to the 'thatism' style instead.
Currently the Layout Handlers attach all of their functionality directly on a new instance using the "this" pointer. We should be attaching these public methods onto the LayoutHandler's prototype, allowing for more efficient sharing of code.