This project is archived and is in readonly mode.
Binds mutator overwrites previous binds
When you create a class that overwrites an other class, the binds of the parent don't get applied. In the attached file I have an example. You can view this example in MooShell at http://mootools.net/shell/gQznR/ I use MooTools-core 1.2.4 and MooTools-more 126.96.36.199.
When you click on the link, the output is:
Log from baseclass, $type(this) == element Log from newClass, $type(this) == object
They should both be 'object', cause they should refer to the class itself (which is an object).
Comments and changes to this ticket
Another ticket for this problem: https://mootools.lighthouseapp.com/projects/24057/tickets/298-class...
- State changed from open to wontfix
I don't think there's a way to fix this. Note that Binds needs to go away anyway (we need a better solution from the -core team; I've advocated a 3rd argument for addEvent but it has not yet been implemented / adopted).
In the mean time, you just have to re-declare them. It sucks.
- State changed from wontfix to resolved
- Milestone changed from 188.8.131.52 to 184.108.40.206
- Assigned user changed from Arian to Aaron Newton
- Milestone order changed from 19 to 0
This is fixed afterall: