tcorral / Hydra.js

Create a scalable, maintainable and module oriented system using Hydra.js
http://tcorral.github.com/Hydra.js
MIT License
102 stars 12 forks source link

Third grade of inheritance made by extension doesn't hold the correct scope on executing parent calls #25

Closed tcorral closed 11 years ago

tcorral commented 11 years ago

If we use module.extend using it to generate a new module, when we do it extending two different modules (third grade of inheritance) if we try to execute parent methods is failing because it's trying to execute only the parent method of the final extended module but it doesn't booble up the inheritance getting the correct scope.

tcorral commented 11 years ago

My recommendation is to use the new decorate method that simplifies the inheritance using decorators instead.